Enable add labels and annotations while adding Config Maps

This commit is contained in:
shanewxy 2019-12-25 17:39:29 +08:00
parent 6234b1cd39
commit 480986ef54
2 changed files with 14 additions and 4 deletions

View File

@ -58,6 +58,16 @@
}}
</div>
<div class="row mt-20">
<FormLabelsAnnotations
@classNames="accordion-wrapper"
@expandAll={{al.expandAll}}
@initialLabels={{primaryResource.labels}}
@model={{primaryResource}}
@editing={{notView}}
/>
</div>
{{#accordion-list showExpandAll=false as | al expandFn |}}
{{#if isView}}
{{form-related-workloads

View File

@ -9,10 +9,10 @@ export default Resource.extend({
router: service(),
clusterStore: service(),
state: 'active',
canClone: true,
namespace: reference('namespaceId', 'namespace', 'clusterStore'),
state: 'active',
canClone: true,
canHaveLabels: true,
namespace: reference('namespaceId', 'namespace', 'clusterStore'),
firstKey: alias('keys.firstObject'),