[pve-devel] [PATCH manager 1/1] change .pve-hint to .pmx-hint css-class

Stoiko Ivanov s.ivanov at proxmox.com
Mon Oct 7 21:37:34 CEST 2019


With introducing pmx-hint to pmg as well, by adding a 'pmx-hint' css-class
to proxmox-widget-toolkit, it makes sense to use the definition everywhere.
this patch drops the .pve-hint class from pve's css and replaces all occurences
in the GUI-source.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 www/css/ext6-pve.css                          | 4 ----
 www/manager6/ceph/CephInstallWizard.js        | 2 +-
 www/manager6/ceph/OSD.js                      | 2 +-
 www/manager6/form/SpiceEnhancementSelector.js | 2 +-
 www/manager6/ha/ResourceEdit.js               | 4 ++--
 www/manager6/node/ZFS.js                      | 2 +-
 www/manager6/qemu/HDEfi.js                    | 2 +-
 www/manager6/qemu/PCIEdit.js                  | 4 ++--
 www/manager6/qemu/QemuBiosEdit.js             | 2 +-
 www/manager6/window/BulkAction.js             | 2 +-
 www/manager6/window/FirewallEnableEdit.js     | 2 +-
 11 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css
index 535f8e60..c4ecc618 100644
--- a/www/css/ext6-pve.css
+++ b/www/css/ext6-pve.css
@@ -446,10 +446,6 @@
     color: black;
 }
 
-.pve-hint {
-    background-color: LightYellow;
-}
-
 /* for info widget */
 div.left-aligned {
     float: left;
diff --git a/www/manager6/ceph/CephInstallWizard.js b/www/manager6/ceph/CephInstallWizard.js
index 166f81b2..bcb44815 100644
--- a/www/manager6/ceph/CephInstallWizard.js
+++ b/www/manager6/ceph/CephInstallWizard.js
@@ -222,7 +222,7 @@ Ext.define('PVE.ceph.CephInstallWizard', {
 		    {
 			xtype: 'displayfield',
 			value: gettext('Additional monitors are recommended. They can be created at any time in the Monitor tab.'),
-			userCls: 'pve-hint'
+			userCls: 'pmx-hint'
 		    }
 		],
 		advancedColumn1: [
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 24f6f9d6..ffdfbee7 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -111,7 +111,7 @@ Ext.define('PVE.CephCreateOsd', {
 		{
 		    xtype: 'displayfield',
 		    padding: '5 0 0 0',
-		    userCls: 'pve-hint',
+		    userCls: 'pmx-hint',
 		    value: 'Note: Ceph is not compatible with disks backed by a hardware ' +
 			   'RAID controller. For details see ' +
 			   '<a target="_blank" href="' + Proxmox.Utils.get_help_link('chapter_pveceph') + '">the reference documentation</a>.',
diff --git a/www/manager6/form/SpiceEnhancementSelector.js b/www/manager6/form/SpiceEnhancementSelector.js
index 1642bf1d..072a9022 100644
--- a/www/manager6/form/SpiceEnhancementSelector.js
+++ b/www/manager6/form/SpiceEnhancementSelector.js
@@ -24,7 +24,7 @@ Ext.define('PVE.form.SpiceEnhancementSelector', {
 	{
 	    xtype: 'displayfield',
 	    itemId: 'spicehint',
-	    userCls: 'pve-hint',
+	    userCls: 'pmx-hint',
 	    value: gettext('To use these features set the display to SPICE in the hardware settings of the VM.'),
 	    hidden: true,
 	}
diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index 2da1d2e9..72c092e9 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -24,7 +24,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 
 	var disabledHint = Ext.createWidget({
 	    xtype: 'displayfield', // won't get submitted by default
-	    userCls: 'pve-hint',
+	    userCls: 'pmx-hint',
 	    value: 'Disabling the resource will stop the guest system. ' +
 	    'See the online help for details.',
 	    hidden: true
@@ -33,7 +33,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 	var fewVotesHint = Ext.createWidget({
 	    itemId: 'fewVotesHint',
 	    xtype: 'displayfield',
-	    userCls: 'pve-hint',
+	    userCls: 'pmx-hint',
 	    value: 'At least three quorum votes are recommended for reliable HA.',
 	    hidden: true
 	});
diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index 2df0bc2f..c978f742 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -159,7 +159,7 @@ Ext.define('PVE.node.CreateZFS', {
 		{
 		    xtype: 'displayfield',
 		    padding: '5 0 0 0',
-		    userCls: 'pve-hint',
+		    userCls: 'pmx-hint',
 		    value: 'Note: ZFS is not compatible with disks backed by a hardware ' +
 			   'RAID controller. For details see ' +
 			   '<a target="_blank" href="' + Proxmox.Utils.get_help_link('chapter_zfs') + '">the reference documentation</a>.',
diff --git a/www/manager6/qemu/HDEfi.js b/www/manager6/qemu/HDEfi.js
index cec27538..a2c0307f 100644
--- a/www/manager6/qemu/HDEfi.js
+++ b/www/manager6/qemu/HDEfi.js
@@ -48,7 +48,7 @@ Ext.define('PVE.qemu.EFIDiskInputPanel', {
 	    {
 		xtype: 'label',
 		text: gettext("Warning: The VM currently does not uses 'OVMF (UEFI)' as BIOS."),
-		userCls: 'pve-hint',
+		userCls: 'pmx-hint',
 		hidden: me.usesEFI,
 	    },
 	];
diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js
index 85d1f4ce..6ff13808 100644
--- a/www/manager6/qemu/PCIEdit.js
+++ b/www/manager6/qemu/PCIEdit.js
@@ -91,7 +91,7 @@ Ext.define('PVE.qemu.PCIInputPanel', {
 			    padding: '0 0 10 0',
 			    value: 'No IOMMU detected, please activate it.' +
 				   'See Documentation for further information.',
-			    userCls: 'pve-hint'
+			    userCls: 'pmx-hint'
 			});
 			me.items.insert(0, warning);
 			me.updateLayout(); // insert does not trigger that
@@ -130,7 +130,7 @@ Ext.define('PVE.qemu.PCIInputPanel', {
 				    itemId: 'iommuwarning',
 				    value: 'The selected Device is not in a seperate' +
 					   'IOMMU group, make sure this is intended.',
-				    userCls: 'pve-hint'
+				    userCls: 'pmx-hint'
 				});
 				me.items.insert(0, warning);
 				me.updateLayout(); // insert does not trigger that
diff --git a/www/manager6/qemu/QemuBiosEdit.js b/www/manager6/qemu/QemuBiosEdit.js
index 54c0271d..0b60047d 100644
--- a/www/manager6/qemu/QemuBiosEdit.js
+++ b/www/manager6/qemu/QemuBiosEdit.js
@@ -8,7 +8,7 @@ Ext.define('PVE.qemu.BiosEdit', {
 
 	var EFIHint = Ext.createWidget({
 	    xtype: 'displayfield', //submitValue is false, so we don't get submitted
-	    userCls: 'pve-hint',
+	    userCls: 'pmx-hint',
 	    value: gettext('You need to add an EFI disk for storing the EFI settings. See the online help for details.'),
 	    hidden: true
 	});
diff --git a/www/manager6/window/BulkAction.js b/www/manager6/window/BulkAction.js
index 4a3e74d7..ba27eef1 100644
--- a/www/manager6/window/BulkAction.js
+++ b/www/manager6/window/BulkAction.js
@@ -86,7 +86,7 @@ Ext.define('PVE.window.BulkAction', {
 		{
 		    itemId: 'lxcwarning',
 		    xtype: 'displayfield',
-		    userCls: 'pve-hint',
+		    userCls: 'pmx-hint',
 		    value: 'Warning: Running CTs will be migrated in Restart Mode.',
 		    hidden: true // only visible if running container chosen
 		}
diff --git a/www/manager6/window/FirewallEnableEdit.js b/www/manager6/window/FirewallEnableEdit.js
index 075bc462..6e774df9 100644
--- a/www/manager6/window/FirewallEnableEdit.js
+++ b/www/manager6/window/FirewallEnableEdit.js
@@ -25,7 +25,7 @@ Ext.define('PVE.FirewallEnableEdit', {
 	{
 	    xtype: 'displayfield',
 	    name: 'warning',
-	    userCls: 'pve-hint',
+	    userCls: 'pmx-hint',
 	    value: gettext('Warning: Firewall still disabled at datacenter level!'),
 	    hidden: true
 	}
-- 
2.20.1





More information about the pve-devel mailing list