1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

status label

This commit is contained in:
Kyle Spearrin 2017-03-29 18:05:56 -04:00
parent cbcfdafef6
commit 853d1f4cfa
3 changed files with 11 additions and 4 deletions

View File

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

View File

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

View File

@ -177,6 +177,10 @@ form .btn .loading-icon {
vertical-align: middle !important;
}
.table td .label {
font-size: 100%;
}
/* Callouts */
.callout.callout-default {