mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-10 17:27:40 +08:00
fix default icon view for credentials
This commit is contained in:
parent
b14fb90120
commit
22fe2fc754
4 changed files with 43 additions and 42 deletions
|
@ -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
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue