mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
status label
This commit is contained in:
parent
cbcfdafef6
commit
853d1f4cfa
@ -100,22 +100,25 @@
|
||||
user.typeName = 'Admin';
|
||||
break;
|
||||
case 2:
|
||||
/* falls through */
|
||||
default:
|
||||
user.typeName = 'User';
|
||||
break;
|
||||
}
|
||||
|
||||
switch (user.status) {
|
||||
case 0:
|
||||
user.statusName = 'Invited';
|
||||
user.statusClass = { 'label-default': true };
|
||||
break;
|
||||
case 1:
|
||||
user.statusName = 'Accepted';
|
||||
user.statusClass = { 'label-warning': true };
|
||||
break;
|
||||
case 2:
|
||||
/* falls through */
|
||||
default:
|
||||
user.statusName = 'Confirmed';
|
||||
break;
|
||||
user.statusClass = { 'label-success': true };
|
||||
}
|
||||
|
||||
users.push(user);
|
||||
|
@ -68,8 +68,8 @@
|
||||
<td style="width: 100px;">
|
||||
{{user.typeName}}
|
||||
</td>
|
||||
<td style="width: 100px;">
|
||||
{{user.statusName}}
|
||||
<td style="width: 120px;">
|
||||
<span class="label" ng-class="{{user.statusClass}}">{{user.statusName}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -177,6 +177,10 @@ form .btn .loading-icon {
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
.table td .label {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
/* Callouts */
|
||||
|
||||
.callout.callout-default {
|
||||
|
Loading…
Reference in New Issue
Block a user