mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-26 00:14:44 +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 () {
|
$scope.addCredential = function () {
|
||||||
var new_credential = CredentialService.newCredential();
|
var new_credential = CredentialService.newCredential();
|
||||||
|
new_credential.icon = null;
|
||||||
var enc_c = CredentialService.encryptCredential(new_credential);
|
var enc_c = CredentialService.encryptCredential(new_credential);
|
||||||
SettingsService.setSetting('edit_credential', enc_c);
|
SettingsService.setSetting('edit_credential', enc_c);
|
||||||
$location.path('/vault/' + $scope.active_vault.guid + '/new');
|
$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">
|
<div class="cell" ng-if="credential.url || credential.icon">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
|
|
|
@ -145,11 +145,11 @@
|
||||||
<span class="close icon-close" ng-click="closeSelected()" alt="Close"></span>
|
<span class="close icon-close" ng-click="closeSelected()" alt="Close"></span>
|
||||||
|
|
||||||
<div class="sidebar">
|
<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>
|
<credential-icon credential="selectedCredential"></credential-icon>
|
||||||
</span>
|
</span>
|
||||||
<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>
|
<i class="fa fa-lock fa-3x icon-image"></i>
|
||||||
</span>
|
</span>
|
||||||
<h2 class="sidebar-label">{{selectedCredential.label}}</h2>
|
<h2 class="sidebar-label">{{selectedCredential.label}}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue