diff --git a/ui/app/components/policy-editor.hbs b/ui/app/components/policy-editor.hbs index 6d0b52804..606a148ed 100644 --- a/ui/app/components/policy-editor.hbs +++ b/ui/app/components/policy-editor.hbs @@ -3,20 +3,17 @@ SPDX-License-Identifier: MPL-2.0 ~}} -
+ {{#if @policy.isNew }} - + + Policy Name + {{/if}}
diff --git a/ui/app/components/policy-editor.js b/ui/app/components/policy-editor.js index 0fcbb0909..9029efbfb 100644 --- a/ui/app/components/policy-editor.js +++ b/ui/app/components/policy-editor.js @@ -19,6 +19,10 @@ export default class PolicyEditorComponent extends Component { this.policy.set('rules', value); } + @action updatePolicyName({ target: { value } }) { + this.policy.set('name', value); + } + @action async save(e) { if (e instanceof Event) { e.preventDefault(); // code-mirror "command+enter" submits the form, but doesnt have a preventDefault() diff --git a/ui/app/components/role-editor.hbs b/ui/app/components/role-editor.hbs index e34eb5eca..4eb18c126 100644 --- a/ui/app/components/role-editor.hbs +++ b/ui/app/components/role-editor.hbs @@ -4,18 +4,15 @@ ~}} - + as |F|> + Role Name +