mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-24 16:49:26 +01:00
sort current tab by last used
This commit is contained in:
parent
e01f3fd40c
commit
926e87c6fe
@ -94,6 +94,10 @@ angular
|
||||
return url && url.startsWith(login.uri) ? 0 : 1;
|
||||
};
|
||||
|
||||
$scope.sortLastUsed = function (login) {
|
||||
return login.localData && login.localData.lastUsedDate ? -1 * login.localData.lastUsedDate : 0;
|
||||
};
|
||||
|
||||
$scope.$on('syncCompleted', function (event, successfully) {
|
||||
if ($scope.loaded) {
|
||||
setTimeout(loadVault, 500);
|
||||
|
@ -10,7 +10,8 @@
|
||||
<div class="list-grouped">
|
||||
<a href="#" stop-click ng-click="fillLogin(login)" class="list-grouped-item condensed"
|
||||
title="{{i18n.autoFill}} {{login.name}}"
|
||||
ng-repeat="login in theLogins = (logins | orderBy: [sortUriMatch, 'name', 'username']) track by $index">
|
||||
ng-repeat="login in theLogins = (logins | orderBy: [sortUriMatch, sortLastUsed, 'name', 'username'])
|
||||
track by $index">
|
||||
<span class="btn-list" stop-prop stop-click title="{{i18n.copyPassword}}"
|
||||
ngclipboard ngclipboard-error="clipboardError(e)"
|
||||
ngclipboard-success="clipboardSuccess(e, i18n.password)"
|
||||
|
Loading…
Reference in New Issue
Block a user