🎨 show "locked" badge in team list (#794)

refs https://github.com/TryGhost/Ghost/issues/8652
This commit is contained in:
Kevin Ansfield 2017-07-21 22:21:27 +01:00 committed by Hannah Wolfe
parent 9eda60a283
commit 0f35d06942
3 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export default Model.extend(ValidationEngine, {
}),
isSuspended: equal('status', 'inactive'),
isLocked: equal('status', 'locked'),
role: computed('roles', {
get() {

View File

@ -51,6 +51,10 @@
opacity: 0;
}
.gh-team .apps-configured .gh-badge {
margin-left: 0.75em;
}
/* Role Labels
/* ---------------------------------------------------------- */

View File

@ -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>