summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/utils
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2022-10-05 14:54:09 +0100
committerMichael Morris <michael.morris@est.tech>2022-10-14 05:53:38 +0000
commitc53d40dd69c956dabfd30eb7dcecad03151747fe (patch)
tree6372171ea4e168a0619b3e0ca1e924fa45757bfb /catalog-ui/src/app/utils
parentb24a4f2f4edf845c10ef42545496256b0bdbb8a8 (diff)
Support viewing of VFC property details when checked in
Issue-ID: SDC-4208 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I4c16ca4058716bfee6a52b37604a045ecabc975c
Diffstat (limited to 'catalog-ui/src/app/utils')
-rw-r--r--catalog-ui/src/app/utils/modals-handler.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/catalog-ui/src/app/utils/modals-handler.ts b/catalog-ui/src/app/utils/modals-handler.ts
index 342f03f290..6813d53884 100644
--- a/catalog-ui/src/app/utils/modals-handler.ts
+++ b/catalog-ui/src/app/utils/modals-handler.ts
@@ -24,7 +24,7 @@ import { ComponentMetadata } from '../models/component-metadata';
export interface IModalsHandler {
openEditPropertyModal(property: PropertyModel, component: Component, filteredProperties: PropertyModel[], isPropertyOwnValue: boolean,
- propertyOwnerType: string, propertyOwnerId: string): ng.IPromise<any>;
+ propertyOwnerType: string, propertyOwnerId: string, isViewOnly: boolean): ng.IPromise<any>;
}
export class ModalsHandler implements IModalsHandler {
@@ -67,7 +67,7 @@ export class ModalsHandler implements IModalsHandler {
* @returns {IPromise<T>} - Promise telling if the modal has opened or not
*/
openEditPropertyModal = (property: PropertyModel, component: Component | ComponentMetadata, filteredProperties: PropertyModel[],
- isPropertyValueOwner: boolean, propertyOwnerType: string, propertyOwnerId: string): ng.IPromise<any> => {
+ isPropertyValueOwner: boolean, propertyOwnerType: string, propertyOwnerId: string, isViewOnly: boolean = false): ng.IPromise<any> => {
const deferred = this.$q.defer();
const modalOptions: ng.ui.bootstrap.IModalSettings = {
@@ -94,6 +94,9 @@ export class ModalsHandler implements IModalsHandler {
},
propertyOwnerId: (): string => {
return propertyOwnerId;
+ },
+ isViewOnly: (): boolean => {
+ return isViewOnly;
}
}
};