ui: datastore: backup owner change: fix layout

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-06 19:48:08 +01:00
parent c7fa61619e
commit d669a739b2

View File

@ -3,7 +3,7 @@ Ext.define('PBS.BackupGroupChangeOwner', {
alias: 'widget.pbsBackupGroupChangeOwner', alias: 'widget.pbsBackupGroupChangeOwner',
submitText: gettext("Change Owner"), submitText: gettext("Change Owner"),
subject: gettext("Change Owner"), width: 350,
initComponent: function() { initComponent: function() {
let me = this; let me = this;
@ -21,6 +21,7 @@ Ext.define('PBS.BackupGroupChangeOwner', {
Ext.apply(me, { Ext.apply(me, {
url: `/api2/extjs/admin/datastore/${me.datastore}/change-owner`, url: `/api2/extjs/admin/datastore/${me.datastore}/change-owner`,
method: 'POST', method: 'POST',
subject: gettext("Change Owner") + ` - ${me.backup_type}/${me.backup_id}`,
items: { items: {
xtype: 'inputpanel', xtype: 'inputpanel',
onGetValues: function(values) { onGetValues: function(values) {
@ -29,12 +30,12 @@ Ext.define('PBS.BackupGroupChangeOwner', {
return values; return values;
}, },
column1: [ items: [
{ {
xtype: 'pbsAuthidSelector', xtype: 'pbsAuthidSelector',
name: 'new-owner', name: 'new-owner',
value: me.owner, value: me.owner,
fieldLabel: gettext('Owner'), fieldLabel: gettext('New Owner'),
minLength: 8, minLength: 8,
allowBlank: false, allowBlank: false,
}, },