Sortable accounts list

This commit is contained in:
RainLoop Team 2015-01-28 02:16:00 +04:00
parent 965ea317e4
commit b563528be7
10 changed files with 150 additions and 28 deletions

View file

@ -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([]);

View file

@ -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