mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Gmail style selection (UNSTABLE)
This commit is contained in:
parent
deffb81888
commit
da88e0d2b5
19 changed files with 561 additions and 572 deletions
|
|
@ -14,23 +14,17 @@ function AdminPackages()
|
|||
this.packagesReal = oData.packagesReal;
|
||||
this.packagesMainUpdatable = oData.packagesMainUpdatable;
|
||||
|
||||
this.packagesCurrent = ko.computed(function () {
|
||||
return _.filter(this.packages(), function (oItem) {
|
||||
return oItem && '' !== oItem['installed'] && !oItem['compare'];
|
||||
});
|
||||
}, this);
|
||||
|
||||
this.packagesAvailableForUpdate = ko.computed(function () {
|
||||
return _.filter(this.packages(), function (oItem) {
|
||||
return oItem && '' !== oItem['installed'] && !!oItem['compare'];
|
||||
});
|
||||
}, this);
|
||||
|
||||
this.packagesAvailableForInstallation = ko.computed(function () {
|
||||
return _.filter(this.packages(), function (oItem) {
|
||||
return oItem && '' === oItem['installed'];
|
||||
});
|
||||
}, this);
|
||||
this.packagesCurrent = this.packages.filter(function (oItem) {
|
||||
return oItem && '' !== oItem['installed'] && !oItem['compare'];
|
||||
});
|
||||
|
||||
this.packagesAvailableForUpdate = this.packages.filter(function (oItem) {
|
||||
return oItem && '' !== oItem['installed'] && !!oItem['compare'];
|
||||
});
|
||||
|
||||
this.packagesAvailableForInstallation = this.packages.filter(function (oItem) {
|
||||
return oItem && '' === oItem['installed'];
|
||||
});
|
||||
|
||||
this.visibility = ko.computed(function () {
|
||||
return oData.packagesLoading() ? 'visible' : 'hidden';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue