fix default icon view for credentials

This commit is contained in:
binsky 2021-03-16 22:08:39 +01:00
parent b14fb90120
commit 22fe2fc754
4 changed files with 43 additions and 42 deletions

View file

@ -229,6 +229,7 @@
$scope.addCredential = function () {
var new_credential = CredentialService.newCredential();
new_credential.icon = null;
var enc_c = CredentialService.encryptCredential(new_credential);
SettingsService.setSetting('edit_credential', enc_c);
$location.path('/vault/' + $scope.active_vault.guid + '/new');

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
<div class="cell icon-category-auth" ng-if="!credential.url && !credential.icon"></div>
<div class="cell fa fa-lock" ng-if="!credential.url && !credential.icon"></div>
<div class="cell" ng-if="credential.url || credential.icon">
<span class="icon">

View file

@ -145,11 +145,11 @@
<span class="close icon-close" ng-click="closeSelected()" alt="Close"></span>
<div class="sidebar">
<span class="icon sidebar-icon" ng-if="selectedCredential.url || credential.icon">
<span class="icon sidebar-icon" ng-if="selectedCredential.url || selectedCredential.icon">
<credential-icon credential="selectedCredential"></credential-icon>
</span>
<span class="icon sidebar-icon" ng-if="!selectedCredential.url && !credential.icon">
<credential-icon credential="selectedCredential"></credential-icon>
<span class="icon sidebar-icon" ng-if="!selectedCredential.url && !selectedCredential.icon">
<i class="fa fa-lock fa-3x icon-image"></i>
</span>
<h2 class="sidebar-label">{{selectedCredential.label}}</h2>
</div>