summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/component-metadata.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/models/component-metadata.ts')
-rw-r--r--catalog-ui/src/app/models/component-metadata.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/catalog-ui/src/app/models/component-metadata.ts b/catalog-ui/src/app/models/component-metadata.ts
index e135e897de..c79552844d 100644
--- a/catalog-ui/src/app/models/component-metadata.ts
+++ b/catalog-ui/src/app/models/component-metadata.ts
@@ -19,7 +19,7 @@
*/
import { CapabilitiesGroup, RequirementsGroup } from 'app/models';
-import { ComponentType } from 'app/utils';
+import {ComponentState, ComponentType} from 'app/utils';
import { IMainCategory } from './category';
import { Metadata } from "app/models/metadata";
/**
@@ -215,4 +215,8 @@ export class ComponentMetadata implements IComponentMetadata {
public getTypeUrl(): string {
return this.componentType === ComponentType.RESOURCE ? 'resources/' : 'services/';
}
+
+ public isComponentDataEditable(): boolean {
+ return this.lifecycleState !== ComponentState.NOT_CERTIFIED_CHECKOUT;
+ }
}