trackOver: false,
},
+ baseUrl: '/access/domains',
+ useTypeInUrl: false,
+
columns: [
{
header: gettext('Realm'),
openEditWindow: function(authType, realm) {
let me = this;
Ext.create('Proxmox.window.AuthEditBase', {
+ baseUrl: me.baseUrl,
+ useTypeInUrl: me.useTypeInUrl,
authType,
realm,
listeners: {
},
{
xtype: 'proxmoxStdRemoveButton',
- baseurl: '/access/domains/',
+ getUrl: (rec) => {
+ let url = me.baseUrl;
+ if (me.useTypeInUrl) {
+ url += `/${rec.get('type')}`;
+ }
+ url += `/${rec.getId()}`;
+ return url;
+ },
enableFn: (rec) => Proxmox.Schema.authDomains[rec.data.type].add,
callback: () => me.reload(),
},