[pbs-devel] [PATCH proxmox-backup 3/3] fix #3939: ui: default realm setting in NodeOptionView
Matthias Heiserer
m.heiserer at proxmox.com
Wed Mar 23 14:01:11 CET 2022
Again, different than we do it in PVE, because default-realm
is stored in node.cfg.
Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
www/config/NodeOptionView.js | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js
index bb12513b..f3652a53 100644
--- a/www/config/NodeOptionView.js
+++ b/www/config/NodeOptionView.js
@@ -53,8 +53,31 @@ Ext.define('PBS.NodeOptionView', {
},
],
+ add_pmxRealmComboBox_row: function(name, text, opts) {
+ let me = this;
+ opts = opts || {};
+ me.rows = me.rows || {};
+ me.rows[name] = {
+ required: true,
+ header: text,
+ defaultValue: opts.defaultValue,
+ renderer: opts.renderer,
+ editor: {
+ xtype: 'proxmoxWindowEdit',
+ subject: text,
+ items: {
+ xtype: 'pmxRealmComboBox',
+ name: name,
+ },
+ },
+ };
+ },
+
initComponent: function() {
let me = this;
+ me.add_pmxRealmComboBox_row('default-realm', gettext('Default realm'), {
+ defaultValue: 'pam',
+ });
me.callParent();
--
2.30.2
More information about the pbs-devel
mailing list