mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Sortable accounts list
This commit is contained in:
parent
965ea317e4
commit
b563528be7
10 changed files with 150 additions and 28 deletions
|
|
@ -99,10 +99,6 @@
|
|||
// security
|
||||
this.enableTwoFactor = ko.observable(false);
|
||||
|
||||
// accounts
|
||||
this.accounts = ko.observableArray([]);
|
||||
this.accountsLoading = ko.observable(false).extend({'throttle': 100});
|
||||
|
||||
// identities
|
||||
this.defaultIdentityID = ko.observable('');
|
||||
this.identities = ko.observableArray([]);
|
||||
|
|
|
|||
|
|
@ -184,6 +184,17 @@
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {?Function} fCallback
|
||||
* @param {Array} aAccounts
|
||||
*/
|
||||
RemoteUserStorage.prototype.accountSortOrder = function (fCallback, aAccounts)
|
||||
{
|
||||
this.defaultRequest(fCallback, 'AccountSortOrder', {
|
||||
'Accounts': aAccounts
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {?Function} fCallback
|
||||
* @param {string} sId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue