mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:32:26 +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"),
|
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",
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user