return;
}
- if (!Proxmox.Utils.authSchema[rec.data.type].edit) {
+ if (!Proxmox.Schema.authDomains[rec.data.type].edit) {
return;
}
var me = this;
let menuitems = [];
- for (const [authType, config] of Object.entries(Proxmox.Utils.authSchema).sort()) {
+ for (const [authType, config] of Object.entries(Proxmox.Schema.authDomains).sort()) {
if (!config.add) { continue; }
menuitems.push({
text: config.name,
xtype: 'proxmoxButton',
text: gettext('Edit'),
disabled: true,
- enableFn: (rec) => Proxmox.Utils.authSchema[rec.data.type].edit,
+ enableFn: (rec) => Proxmox.Schema.authDomains[rec.data.type].edit,
handler: () => me.run_editor(),
},
{
xtype: 'proxmoxStdRemoveButton',
baseurl: '/access/domains/',
- enableFn: (rec) => Proxmox.Utils.authSchema[rec.data.type].add,
+ enableFn: (rec) => Proxmox.Schema.authDomains[rec.data.type].add,
callback: () => me.reload(),
},
];