FIX: correct display for unlocking on tl0

This commit is contained in:
Jeff Wong 2018-06-19 17:40:24 -07:00
parent 591512fcb8
commit 406c6d679a
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
showApproval: setting("must_approve_users"), showApproval: setting("must_approve_users"),
showBadges: setting("enable_badges"), showBadges: setting("enable_badges"),
hasLockedTrustLevel: Ember.computed.notEmpty("model.manual_locked_trust_level"),
primaryGroupDirty: propertyNotEqual( primaryGroupDirty: propertyNotEqual(
"originalPrimaryGroupId", "originalPrimaryGroupId",

View File

@ -304,7 +304,7 @@
</div> </div>
<div class="controls"> <div class="controls">
{{#if model.canLockTrustLevel}} {{#if model.canLockTrustLevel}}
{{#if model.manual_locked_trust_level}} {{#if hasLockedTrustLevel}}
{{d-icon "lock" title="admin.user.trust_level_locked_tip"}} {{d-icon "lock" title="admin.user.trust_level_locked_tip"}}
{{d-button action="lockTrustLevel" actionParam=false label="admin.user.unlock_trust_level"}} {{d-button action="lockTrustLevel" actionParam=false label="admin.user.unlock_trust_level"}}
{{else}} {{else}}