mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:05:24 +08:00
FIX: correct display for unlocking on tl0
This commit is contained in:
parent
591512fcb8
commit
406c6d679a
|
@ -16,6 +16,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
|
||||
showApproval: setting("must_approve_users"),
|
||||
showBadges: setting("enable_badges"),
|
||||
hasLockedTrustLevel: Ember.computed.notEmpty("model.manual_locked_trust_level"),
|
||||
|
||||
primaryGroupDirty: propertyNotEqual(
|
||||
"originalPrimaryGroupId",
|
||||
|
|
|
@ -304,7 +304,7 @@
|
|||
</div>
|
||||
<div class="controls">
|
||||
{{#if model.canLockTrustLevel}}
|
||||
{{#if model.manual_locked_trust_level}}
|
||||
{{#if hasLockedTrustLevel}}
|
||||
{{d-icon "lock" title="admin.user.trust_level_locked_tip"}}
|
||||
{{d-button action="lockTrustLevel" actionParam=false label="admin.user.unlock_trust_level"}}
|
||||
{{else}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user