Hide the lock/unlock option for global roles

https://github.com/rancher/rancher/issues/14807
This commit is contained in:
loganhz 2018-07-30 12:55:38 +08:00
parent 9e37de25c1
commit 7c1c511842
1 changed files with 24 additions and 22 deletions

View File

@ -27,6 +27,7 @@
{{/if}}
<div class="row">
{{#unless (eq roleType 'global')}}
<div class="col span-6">
<label class="acc-label">{{t 'rolesPage.new.form.locked.labelText' }}</label>
{{#if readOnly}}
@ -49,6 +50,7 @@
<p class="help-block">{{t 'rolesPage.new.form.locked.detail'}}</p>
{{/if}}
</div>
{{/unless}}
<div class="col span-6">
<label class="acc-label">{{t (concat 'rolesPage.new.form.default.' roleType) }}</label>