Added compromised stlye to credentiallist

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
fnuesse 2019-01-08 21:04:03 +01:00
parent 0751fbf2c6
commit 5733031bcd
No known key found for this signature in database
GPG key ID: 2089A3431243E819
2 changed files with 10 additions and 2 deletions

View file

@ -214,6 +214,14 @@
&.selected {
background-color: #f8f8f8;
}
.compromised {
background-color: #f74040;
}
.compromised:hover {
background-color: darken(#f74040, 4%);
}
td {
cursor: pointer;
padding: 5px;

View file

@ -41,9 +41,9 @@
ng-if="view_mode === 'list'">
<tr ng-repeat="credential in filtered_credentials | orderBy:'label'"
ng-if="showCredentialRow(credential)"
ng-click="selectCredential(credential)" ng-dblclick="editCredential(credential)"
ng-click="selectCredential(credential)" ng-dblclick="editCredential(credential)"
ng-class="{'selected': selectedCredential.credential_id == credential.credential_id}">
<td>
<td ng-class="{'compromised': !selectedCredential.compromised }">
<span class="tags">
<span class="tag" ng-repeat="tag in credential.tags_raw">{{ ::tag.text}}</span>