[pmg-devel] [PATCH widget-toolkit v6 10/12] form: RealmComboBox: add option to change the API path
Markus Frank
m.frank at proxmox.com
Tue Feb 25 14:36:17 CET 2025
Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
This patch is new to v6. Required to change the API path to
/access/auth-realm
src/form/RealmComboBox.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/form/RealmComboBox.js b/src/form/RealmComboBox.js
index c57b52d..fbd042f 100644
--- a/src/form/RealmComboBox.js
+++ b/src/form/RealmComboBox.js
@@ -7,6 +7,7 @@ Ext.define('Proxmox.form.RealmComboBox', {
init: function(view) {
let store = view.getStore();
+ store.proxy.url = `/api2/json${view.baseUrl}`;
if (view.storeFilter) {
store.setFilters(view.storeFilter);
}
@@ -45,6 +46,7 @@ Ext.define('Proxmox.form.RealmComboBox', {
triggerAction: 'all',
valueField: 'realm',
displayField: 'descr',
+ baseUrl: '/access/domains',
getState: function() {
return { value: this.getValue() };
},
--
2.39.5
More information about the pmg-devel
mailing list