[pmg-devel] [PATCH pmg-gui] sorters: use correct property 'direction' and keep default 'ASC'
Fabian Ebner
f.ebner at proxmox.com
Tue Dec 7 12:53:31 CET 2021
Ext.util.Sorter does not have an 'order' property, so 'order: DESC'
didn't have an effect. The default is 'ASC' and it is arguably the
preferred direction for all affected sorters anyways.
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
js/ActionList.js | 2 +-
js/ClamAVDatabase.js | 2 +-
js/LDAPConfig.js | 2 +-
js/MailProxyTLSDestinations.js | 2 +-
js/MyNetworks.js | 2 +-
js/ObjectGroupList.js | 2 +-
js/PBSConfig.js | 2 +-
js/RelayDomains.js | 2 +-
js/SpamDetectorStatus.js | 2 +-
js/Transport.js | 2 +-
10 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/js/ActionList.js b/js/ActionList.js
index bb13a5b..a94e3e1 100644
--- a/js/ActionList.js
+++ b/js/ActionList.js
@@ -31,7 +31,7 @@ Ext.define('PMG.ActionList', {
},
sorters: {
property: 'name',
- order: 'DESC',
+ direction: 'ASC',
},
});
diff --git a/js/ClamAVDatabase.js b/js/ClamAVDatabase.js
index 884ffe1..d3f8e49 100644
--- a/js/ClamAVDatabase.js
+++ b/js/ClamAVDatabase.js
@@ -66,7 +66,7 @@ Ext.define('PMG.ClamAVDatabaseStatus', {
},
sorters: {
property: 'name',
- order: 'DESC',
+ direction: 'ASC',
},
});
diff --git a/js/LDAPConfig.js b/js/LDAPConfig.js
index d7e4263..0a114ff 100644
--- a/js/LDAPConfig.js
+++ b/js/LDAPConfig.js
@@ -518,7 +518,7 @@ Ext.define('PMG.LDAPConfigGrid', {
model: 'pmg-ldap-config',
sorters: [{
property: 'profile',
- order: 'DESC',
+ direction: 'ASC',
}],
},
diff --git a/js/MailProxyTLSDestinations.js b/js/MailProxyTLSDestinations.js
index 0bdcc2a..04348c9 100644
--- a/js/MailProxyTLSDestinations.js
+++ b/js/MailProxyTLSDestinations.js
@@ -8,7 +8,7 @@ Ext.define('pmg-tls-policy', {
},
sorters: {
property: 'destination',
- order: 'DESC',
+ direction: 'ASC',
},
});
diff --git a/js/MyNetworks.js b/js/MyNetworks.js
index 6c52f1a..975e21d 100644
--- a/js/MyNetworks.js
+++ b/js/MyNetworks.js
@@ -19,7 +19,7 @@ Ext.define('PMG.MyNetworks', {
model: 'pmg-mynetworks',
sorters: {
property: 'cidr',
- order: 'DESC',
+ direction: 'ASC',
},
});
diff --git a/js/ObjectGroupList.js b/js/ObjectGroupList.js
index 2e850e6..80dedc9 100644
--- a/js/ObjectGroupList.js
+++ b/js/ObjectGroupList.js
@@ -88,7 +88,7 @@ Ext.define('PMG.ObjectGroupList', {
},
sorters: {
property: 'name',
- order: 'DESC',
+ direction: 'ASC',
},
});
diff --git a/js/PBSConfig.js b/js/PBSConfig.js
index 5e88574..3f09ccc 100644
--- a/js/PBSConfig.js
+++ b/js/PBSConfig.js
@@ -103,7 +103,7 @@ Ext.define('PMG.PBSConfigGrid', {
model: 'pmg-pbs-config',
sorters: [{
property: 'remote',
- order: 'DESC',
+ direction: 'ASC',
}],
},
diff --git a/js/RelayDomains.js b/js/RelayDomains.js
index 0098e20..ec43aa1 100644
--- a/js/RelayDomains.js
+++ b/js/RelayDomains.js
@@ -20,7 +20,7 @@ Ext.define('PMG.RelayDomains', {
model: 'pmg-domains',
sorters: {
property: 'domain',
- order: 'DESC',
+ direction: 'ASC',
},
proxy: {
type: 'proxmox',
diff --git a/js/SpamDetectorStatus.js b/js/SpamDetectorStatus.js
index 4b6d0fb..a0da9ff 100644
--- a/js/SpamDetectorStatus.js
+++ b/js/SpamDetectorStatus.js
@@ -94,7 +94,7 @@ Ext.define('PMG.SpamDetectorStatusGrid', {
},
sorters: {
property: 'name',
- order: 'DESC',
+ direction: 'ASC',
},
});
diff --git a/js/Transport.js b/js/Transport.js
index 97a4aad..141fde1 100644
--- a/js/Transport.js
+++ b/js/Transport.js
@@ -20,7 +20,7 @@ Ext.define('PMG.Transport', {
model: 'pmg-transport',
sorters: {
property: 'domain',
- order: 'DESC',
+ direction: 'ASC',
},
});
Proxmox.Utils.monStoreErrors(me, store, true);
--
2.30.2
More information about the pmg-devel
mailing list