mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
🎨 show "locked" badge in team list (#794)
refs https://github.com/TryGhost/Ghost/issues/8652
This commit is contained in:
parent
9eda60a283
commit
0f35d06942
@ -59,6 +59,7 @@ export default Model.extend(ValidationEngine, {
|
||||
}),
|
||||
|
||||
isSuspended: equal('status', 'inactive'),
|
||||
isLocked: equal('status', 'locked'),
|
||||
|
||||
role: computed('roles', {
|
||||
get() {
|
||||
|
@ -51,6 +51,10 @@
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.gh-team .apps-configured .gh-badge {
|
||||
margin-left: 0.75em;
|
||||
}
|
||||
|
||||
|
||||
/* Role Labels
|
||||
/* ---------------------------------------------------------- */
|
||||
|
@ -12,6 +12,9 @@
|
||||
</div>
|
||||
<div class="apps-card-right">
|
||||
<div class="apps-configured">
|
||||
{{#if user.isLocked}}
|
||||
<span class="gh-badge author">Locked</span>
|
||||
{{/if}}
|
||||
{{#unless session.user.isAuthor}}
|
||||
{{#each user.roles as |role|}}
|
||||
<span class="gh-badge {{role.lowerCaseName}}" data-test-role-name>{{role.name}}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user