Added friendly reminder to create your first password

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
fnuesse 2018-11-03 13:21:04 +01:00
parent 730e954176
commit 0884375b1f
No known key found for this signature in database
GPG key ID: 2089A3431243E819
3 changed files with 20 additions and 1 deletions

View file

@ -385,6 +385,13 @@
});
$scope.getListSize = function(){
var l = $scope.filtered_credentials;//$scope.active_vault.credentials.length
console.log(l.length);
return l.length;
};
$scope.filterAll = function(){
$scope.selectedtags=[];
$scope.filterOptions.filterText="";

View file

@ -168,7 +168,6 @@
}
.searchboxContainer {
/*display: inline-block;*/
visibility: hidden;
display: none;
@ -460,6 +459,12 @@
.share{
overflow:hidden;
}
.nopasswords{
margin-right: auto;
margin-left: auto;
margin-top: 10%;
text-align: center;
}
}
.app_sidebar {

View file

@ -89,6 +89,13 @@
</div>
</li>
</ul>
<div ng-if="getListSize()==0" class="nopasswords">
<b>{{'Hello there!' | translate}}</b><br>
<div>{{'It does not seem that you have any passwords. Do you want to add one?' | translate}}</div>
<div class="">
<button ng-click="addCredential()">+</button>
</div>
</div>
</div>
</div>