ui: snapshots: move hint to bottom and make it shorter

Moving it to the bottom of the dialog avoids other UI elements
jumping around when it gets displayed.

Further shorten the text itself, while the originally was good it was
a bit on the long side, users tend to overead to long warnings/hints
more easily, so try to be more terse.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-02-06 22:39:22 +01:00
parent a6ebb96d7c
commit 3892d1e62e

View File

@ -58,16 +58,6 @@ Ext.define('PVE.window.Snapshot', {
}
me.items = [
{
xtype: 'displayfield',
userCls: 'pmx-hint',
name: 'fswarning',
hidden: true,
value: gettext('It is recommended to either include the RAM or enable the QEMU Guest Agent when taking a snapshot of a running VM. Otherwise the file system might be in an inconsistent state when the snapshot is taken.'),
bind: {
hidden: '{!shouldWarnAboutFS}',
},
},
{
xtype: me.isCreate ? 'textfield' : 'displayfield',
name: 'snapname',
@ -102,6 +92,16 @@ Ext.define('PVE.window.Snapshot', {
name: 'description',
fieldLabel: gettext('Description')
},
{
xtype: 'displayfield',
userCls: 'pmx-hint',
name: 'fswarning',
hidden: true,
value: gettext('It is recommended to either include the RAM or use the QEMU Guest Agent when taking a snapshot of a running VM to avoid inconsistencies.'),
bind: {
hidden: '{!shouldWarnAboutFS}',
},
},
{
title: gettext('Settings'),
hidden: me.isCreate,