From 5020d97e2c25f069fa1ac7dc5c1e26fb43cce1e7 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Thu, 5 Nov 2020 09:38:37 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20do=20not=20show=20grant?= =?UTF-8?q?=20scope=20field=20in=20new=20role=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/core/app/components/form/role/index.hbs | 110 +++++++++++---------- ui/core/app/components/form/role/index.js | 6 +- ui/core/mirage/serializers/role.js | 4 + 3 files changed, 62 insertions(+), 58 deletions(-) diff --git a/ui/core/app/components/form/role/index.hbs b/ui/core/app/components/form/role/index.hbs index 0a87cde78..2530f4dbb 100644 --- a/ui/core/app/components/form/role/index.hbs +++ b/ui/core/app/components/form/role/index.hbs @@ -44,60 +44,62 @@ {{/if}} -
- {{t "form.grant_scope.label"}} - - {{t "form.grant_scope.help"}} - - - -
    - {{#each @grantScopes as |grantScope|}} -
  • - - - -
      - {{#each grantScope.subScopes as |subScope|}} -
    • - - - -
        - {{#each subScope.subScopes as |subSubScope|}} -
      • - - - -
      • - {{/each}} -
      -
    • - {{/each}} -
    -
  • - {{/each}} -
-
-
-
+ {{#unless @model.isNew}} +
+ {{t "form.grant_scope.label"}} + + {{t "form.grant_scope.help"}} + + + +
    + {{#each @grantScopes as |grantScope|}} +
  • + + + +
      + {{#each grantScope.subScopes as |subScope|}} +
    • + + + +
        + {{#each subScope.subScopes as |subSubScope|}} +
      • + + + +
      • + {{/each}} +
      +
    • + {{/each}} +
    +
  • + {{/each}} +
+
+
+
+ {{/unless}}