public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH widget-toolkit] sorters: use correct property 'direction' and keep default 'ASC'
@ 2021-12-07 11:53 Fabian Ebner
  2021-12-07 11:53 ` [pmg-devel] [PATCH pmg-gui] " Fabian Ebner
  2022-02-10 12:56 ` [pmg-devel] applied: [PATCH widget-toolkit] " Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Fabian Ebner @ 2021-12-07 11:53 UTC (permalink / raw)
  To: pmg-devel

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 realm anyways.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
---

I'll also send a patch for PVE later. PBS doesn't have this mistake
anywhere AFAICS.

 src/panel/AuthView.js     | 2 +-
 src/window/ACMEAccount.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panel/AuthView.js b/src/panel/AuthView.js
index 781e84e..69fe1a5 100644
--- a/src/panel/AuthView.js
+++ b/src/panel/AuthView.js
@@ -39,7 +39,7 @@ Ext.define('Proxmox.panel.AuthView', {
 	model: 'pmx-domains',
 	sorters: {
 	    property: 'realm',
-	    order: 'DESC',
+	    direction: 'ASC',
 	},
     },
 
diff --git a/src/window/ACMEAccount.js b/src/window/ACMEAccount.js
index 05278a8..cf16736 100644
--- a/src/window/ACMEAccount.js
+++ b/src/window/ACMEAccount.js
@@ -45,7 +45,7 @@ Ext.define('Proxmox.window.ACMEAccountCreate', {
 		proxy: { type: 'proxmox' },
 		sorters: {
 		    property: 'name',
-		    order: 'ASC',
+		    direction: 'ASC',
 		},
 	    },
 	    listConfig: {
-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-10 12:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 11:53 [pmg-devel] [PATCH widget-toolkit] sorters: use correct property 'direction' and keep default 'ASC' Fabian Ebner
2021-12-07 11:53 ` [pmg-devel] [PATCH pmg-gui] " Fabian Ebner
2022-02-03 11:33   ` [pmg-devel] applied: " Thomas Lamprecht
2022-02-10 12:56 ` [pmg-devel] applied: [PATCH widget-toolkit] " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal