[pve-devel] [PATCH manager 26/49] use Checkbox from widget toolkit
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Jan 23 11:05:43 CET 2018
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/Makefile | 1 -
www/manager6/ceph/OSD.js | 4 ++--
www/manager6/ceph/Pool.js | 2 +-
www/manager6/dc/ACLView.js | 2 +-
www/manager6/dc/AuthEdit.js | 4 ++--
www/manager6/dc/Backup.js | 2 +-
www/manager6/dc/UserEdit.js | 2 +-
www/manager6/form/Checkbox.js | 44 -----------------------------------
www/manager6/grid/FirewallOptions.js | 2 +-
www/manager6/grid/FirewallRules.js | 4 ++--
www/manager6/grid/Replication.js | 2 +-
www/manager6/ha/GroupEdit.js | 4 ++--
www/manager6/lxc/CreateWizard.js | 2 +-
www/manager6/lxc/MPEdit.js | 10 ++++----
www/manager6/lxc/Network.js | 2 +-
www/manager6/lxc/Options.js | 6 ++---
www/manager6/panel/IPSet.js | 2 +-
www/manager6/qemu/HDEdit.js | 8 +++----
www/manager6/qemu/HDMove.js | 2 +-
www/manager6/qemu/MemoryEdit.js | 2 +-
www/manager6/qemu/NetworkEdit.js | 4 ++--
www/manager6/qemu/Options.js | 16 ++++++-------
www/manager6/qemu/ProcessorEdit.js | 4 ++--
www/manager6/qemu/Snapshot.js | 2 +-
www/manager6/storage/DirEdit.js | 4 ++--
www/manager6/storage/GlusterFsEdit.js | 2 +-
www/manager6/storage/IScsiEdit.js | 2 +-
www/manager6/storage/LVMEdit.js | 4 ++--
www/manager6/storage/LvmThinEdit.js | 2 +-
www/manager6/storage/NFSEdit.js | 2 +-
www/manager6/storage/RBDEdit.js | 4 ++--
www/manager6/storage/SheepdogEdit.js | 2 +-
www/manager6/storage/ZFSEdit.js | 6 ++---
www/manager6/storage/ZFSPoolEdit.js | 4 ++--
www/manager6/window/Restore.js | 2 +-
35 files changed, 61 insertions(+), 106 deletions(-)
delete mode 100644 www/manager6/form/Checkbox.js
diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 12daab1d..63f3abf7 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -22,7 +22,6 @@ JSSRC= \
data/ResourceStore.js \
data/model/RRDModels.js \
form/VLanField.js \
- form/Checkbox.js \
form/RRDTypeSelector.js \
form/KVComboBox.js \
form/Boolean.js \
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index af77da3d..bf15eff6 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -116,7 +116,7 @@ Ext.define('PVE.CephCreateOsd', {
emptyText: 'use OSD disk'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'bluestore',
fieldLabel: 'Bluestore',
uncheckedValue: '0',
@@ -139,7 +139,7 @@ Ext.define('PVE.CephRemoveOsd', {
method: 'DELETE',
items: [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'cleanup',
checked: true,
labelWidth: 130,
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index 956d0d35..ee152da8 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -49,7 +49,7 @@ Ext.define('PVE.CephCreatePool', {
allowBlank: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Add Storages'),
name: 'add_storages'
}
diff --git a/www/manager6/dc/ACLView.js b/www/manager6/dc/ACLView.js
index 1152b41c..b3438cbf 100644
--- a/www/manager6/dc/ACLView.js
+++ b/www/manager6/dc/ACLView.js
@@ -47,7 +47,7 @@ Ext.define('PVE.dc.ACLAdd', {
if (!me.path) {
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'propagate',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/dc/AuthEdit.js b/www/manager6/dc/AuthEdit.js
index 1a3b07c3..ca940f3c 100644
--- a/www/manager6/dc/AuthEdit.js
+++ b/www/manager6/dc/AuthEdit.js
@@ -83,7 +83,7 @@ Ext.define('PVE.dc.AuthEdit', {
}
column1.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Default'),
name: 'default',
uncheckedValue: 0
@@ -115,7 +115,7 @@ Ext.define('PVE.dc.AuthEdit', {
submitEmptyText: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: 'SSL',
name: 'secure',
uncheckedValue: 0
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 90d9fd8b..a79ab6ce 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -182,7 +182,7 @@ Ext.define('PVE.dc.BackupEdit', {
name: 'mode'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Enable'),
name: 'enabled',
uncheckedValue: 0,
diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js
index 17c64607..6a16a5ea 100644
--- a/www/manager6/dc/UserEdit.js
+++ b/www/manager6/dc/UserEdit.js
@@ -92,7 +92,7 @@ Ext.define('PVE.dc.UserEdit', {
fieldLabel: gettext('Expire')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Enabled'),
name: 'enable',
uncheckedValue: 0,
diff --git a/www/manager6/form/Checkbox.js b/www/manager6/form/Checkbox.js
deleted file mode 100644
index dc26c05a..00000000
--- a/www/manager6/form/Checkbox.js
+++ /dev/null
@@ -1,44 +0,0 @@
-Ext.define('PVE.form.Checkbox', {
- extend: 'Ext.form.field.Checkbox',
- alias: ['widget.pvecheckbox'],
-
- defaultValue: undefined,
-
- deleteDefaultValue: false,
- deleteEmpty: false,
-
- inputValue: '1',
-
- getSubmitData: function() {
- var me = this,
- data = null,
- val;
- if (!me.disabled && me.submitValue) {
- val = me.getSubmitValue();
- if (val !== null) {
- data = {};
- if ((val == me.defaultValue) && me.deleteDefaultValue) {
- data['delete'] = me.getName();
- } else {
- data[me.getName()] = val;
- }
- } else if (me.deleteEmpty) {
- data = {};
- data['delete'] = me.getName();
- }
- }
- return data;
- },
-
- // also accept integer 1 as true
- setRawValue: function(value) {
- var me = this;
-
- if (value === 1) {
- me.callParent([true]);
- } else {
- me.callParent([value]);
- }
- }
-
-});
\ No newline at end of file
diff --git a/www/manager6/grid/FirewallOptions.js b/www/manager6/grid/FirewallOptions.js
index 1460ca51..532c2865 100644
--- a/www/manager6/grid/FirewallOptions.js
+++ b/www/manager6/grid/FirewallOptions.js
@@ -36,7 +36,7 @@ Ext.define('PVE.FirewallOptions', {
subject: text,
fieldDefaults: { labelWidth: labelWidth || 100 },
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
defaultValue: defaultValue || 0,
checked: defaultValue ? true : false,
name: name,
diff --git a/www/manager6/grid/FirewallRules.js b/www/manager6/grid/FirewallRules.js
index 5cb002d2..22d09dca 100644
--- a/www/manager6/grid/FirewallRules.js
+++ b/www/manager6/grid/FirewallRules.js
@@ -151,7 +151,7 @@ Ext.define('PVE.FirewallRulePanel', {
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: false,
uncheckedValue: 0,
@@ -337,7 +337,7 @@ Ext.define('PVE.FirewallGroupRuleEdit', {
column1: column1,
column2: [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: false,
uncheckedValue: 0,
diff --git a/www/manager6/grid/Replication.js b/www/manager6/grid/Replication.js
index 5edcd2fb..ad9aa7a5 100644
--- a/www/manager6/grid/Replication.js
+++ b/www/manager6/grid/Replication.js
@@ -52,7 +52,7 @@ Ext.define('PVE.window.ReplicaEdit', {
name: 'comment'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enabled',
defaultValue: 'on',
checked: true,
diff --git a/www/manager6/ha/GroupEdit.js b/www/manager6/ha/GroupEdit.js
index fdaab4cb..623b1dc7 100644
--- a/www/manager6/ha/GroupEdit.js
+++ b/www/manager6/ha/GroupEdit.js
@@ -164,13 +164,13 @@ Ext.define('PVE.ha.GroupInputPanel', {
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'restricted',
uncheckedValue: 0,
fieldLabel: 'restricted'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'nofailback',
uncheckedValue: 0,
fieldLabel: 'nofailback'
diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index 38443f09..70deaaaf 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -216,7 +216,7 @@ Ext.define('PVE.lxc.CreateWizard', {
allowBlank: true
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'unprivileged',
value: '',
listeners: {
diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js
index 54eca7b4..be4814f7 100644
--- a/www/manager6/lxc/MPEdit.js
+++ b/www/manager6/lxc/MPEdit.js
@@ -218,7 +218,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
allowBlank: true
});
- me.quota = Ext.createWidget('pvecheckbox', {
+ me.quota = Ext.createWidget('proxmoxcheckbox', {
name: 'quota',
defaultValue: 0,
disabled: me.unprivileged,
@@ -232,15 +232,15 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
if (!isroot) {
me.column2.splice(1, 0, {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'ro',
defaultValue: 0,
fieldLabel: gettext('Read-only'),
hidden: me.insideWizard
});
- me.backup = Ext.createWidget('pvecheckbox',{
- xtype: 'pvecheckbox',
+ me.backup = Ext.createWidget('proxmoxcheckbox',{
+ xtype: 'proxmoxcheckbox',
name: 'backup',
fieldLabel: gettext('Backup')
});
@@ -248,7 +248,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
me.column2.push(me.backup);
}
me.column2.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'noreplicate',
fieldLabel: gettext('Skip replication')
});
diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 80ba9dc6..1cf57fe2 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -146,7 +146,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
allowBlank: true
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Firewall'),
name: 'firewall',
checked: cdata.firewall
diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index c1da432f..68a82999 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -30,7 +30,7 @@ Ext.define('PVE.lxc.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Start at boot'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'onboot',
uncheckedValue: 0,
defaultValue: 0,
@@ -64,7 +64,7 @@ Ext.define('PVE.lxc.Options', {
xtype: 'pveWindowEdit',
subject: '/dev/console',
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'console',
uncheckedValue: 0,
defaultValue: 1,
@@ -121,7 +121,7 @@ Ext.define('PVE.lxc.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Protection'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
diff --git a/www/manager6/panel/IPSet.js b/www/manager6/panel/IPSet.js
index c4a9bdb7..8c1c7fc8 100644
--- a/www/manager6/panel/IPSet.js
+++ b/www/manager6/panel/IPSet.js
@@ -213,7 +213,7 @@ Ext.define('PVE.IPSetCidrEdit', {
column1: column1,
column2: [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'nomatch',
checked: false,
uncheckedValue: 0,
diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index affb2984..1b5bb80f 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -218,25 +218,25 @@ Ext.define('PVE.qemu.HDInputPanel', {
fieldLabel: gettext('Cache')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('No backup'),
name: 'nobackup'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
hidden: me.insideWizard,
fieldLabel: gettext('Skip replication'),
name: 'noreplicate'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Discard'),
disabled: me.confid && !me.confid.match(/^scsi/),
reference: 'discard',
name: 'discard'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
disabled: me.confid && !me.confid.match(/^(virtio|scsi)/),
fieldLabel: 'IO thread',
reference: 'iothread',
diff --git a/www/manager6/qemu/HDMove.js b/www/manager6/qemu/HDMove.js
index 29f1db32..fc9fd442 100644
--- a/www/manager6/qemu/HDMove.js
+++ b/www/manager6/qemu/HDMove.js
@@ -68,7 +68,7 @@ Ext.define('PVE.window.HDMove', {
});
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Delete source'),
name: 'deleteDisk',
uncheckedValue: 0,
diff --git a/www/manager6/qemu/MemoryEdit.js b/www/manager6/qemu/MemoryEdit.js
index 73e6b04d..c69ed7b4 100644
--- a/www/manager6/qemu/MemoryEdit.js
+++ b/www/manager6/qemu/MemoryEdit.js
@@ -67,7 +67,7 @@ Ext.define('PVE.qemu.MemoryInputPanel', {
labelWidth: labelWidth
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
hotplug: me.hotplug,
name: 'ballooning',
value: '1',
diff --git a/www/manager6/qemu/NetworkEdit.js b/www/manager6/qemu/NetworkEdit.js
index bc72c1fc..1661a454 100644
--- a/www/manager6/qemu/NetworkEdit.js
+++ b/www/manager6/qemu/NetworkEdit.js
@@ -100,7 +100,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
},
me.bridgesel,
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Firewall'),
name: 'firewall',
labelAlign: 'right'
@@ -158,7 +158,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
allowBlank: true
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Disconnect'),
name: 'disconnect'
}
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index 04663c40..47bc2d85 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -59,7 +59,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Start at boot'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'onboot',
uncheckedValue: 0,
defaultValue: 0,
@@ -129,7 +129,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Use tablet for pointer'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'tablet',
checked: true,
uncheckedValue: 0,
@@ -164,7 +164,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('ACPI support'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'acpi',
checked: true,
uncheckedValue: 0,
@@ -194,7 +194,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('KVM hardware virtualization'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'kvm',
checked: true,
uncheckedValue: 0,
@@ -212,7 +212,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Freeze CPU at startup'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'freeze',
uncheckedValue: 0,
defaultValue: 0,
@@ -230,7 +230,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Use local time for RTC'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'localtime',
uncheckedValue: 0,
defaultValue: 0,
@@ -271,7 +271,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Qemu Agent'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'agent',
uncheckedValue: 0,
defaultValue: 0,
@@ -288,7 +288,7 @@ Ext.define('PVE.qemu.Options', {
xtype: 'pveWindowEdit',
subject: gettext('Protection'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
diff --git a/www/manager6/qemu/ProcessorEdit.js b/www/manager6/qemu/ProcessorEdit.js
index be31615f..b2b39f8f 100644
--- a/www/manager6/qemu/ProcessorEdit.js
+++ b/www/manager6/qemu/ProcessorEdit.js
@@ -93,7 +93,7 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
}
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Enable NUMA'),
name: 'numa',
uncheckedValue: 0
@@ -121,7 +121,7 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
me.column2.push({
hidden: me.insideWizard,
disabled: me.insideWizard,
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: me.flagLabels[i] || flag,
name: flag,
uncheckedValue: 0
diff --git a/www/manager6/qemu/Snapshot.js b/www/manager6/qemu/Snapshot.js
index b6ac5d29..85a3ea50 100644
--- a/www/manager6/qemu/Snapshot.js
+++ b/www/manager6/qemu/Snapshot.js
@@ -91,7 +91,7 @@ Ext.define('PVE.window.Snapshot', {
});
} else {
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'vmstate',
uncheckedValue: 0,
defaultValue: 0,
diff --git a/www/manager6/storage/DirEdit.js b/www/manager6/storage/DirEdit.js
index 74255072..625cf0ce 100644
--- a/www/manager6/storage/DirEdit.js
+++ b/www/manager6/storage/DirEdit.js
@@ -49,14 +49,14 @@ Ext.define('PVE.storage.DirInputPanel', {
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'shared',
uncheckedValue: 0,
fieldLabel: gettext('Shared')
diff --git a/www/manager6/storage/GlusterFsEdit.js b/www/manager6/storage/GlusterFsEdit.js
index ac6cde63..fe7e2a00 100644
--- a/www/manager6/storage/GlusterFsEdit.js
+++ b/www/manager6/storage/GlusterFsEdit.js
@@ -141,7 +141,7 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/storage/IScsiEdit.js b/www/manager6/storage/IScsiEdit.js
index 68a4d8a6..71c595da 100644
--- a/www/manager6/storage/IScsiEdit.js
+++ b/www/manager6/storage/IScsiEdit.js
@@ -127,7 +127,7 @@ Ext.define('PVE.storage.IScsiInputPanel', {
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/storage/LVMEdit.js b/www/manager6/storage/LVMEdit.js
index c1469891..531b735a 100644
--- a/www/manager6/storage/LVMEdit.js
+++ b/www/manager6/storage/LVMEdit.js
@@ -201,14 +201,14 @@ Ext.define('PVE.storage.LVMInputPanel', {
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'shared',
uncheckedValue: 0,
fieldLabel: gettext('Shared')
diff --git a/www/manager6/storage/LvmThinEdit.js b/www/manager6/storage/LvmThinEdit.js
index 44be72b9..4270ee81 100644
--- a/www/manager6/storage/LvmThinEdit.js
+++ b/www/manager6/storage/LvmThinEdit.js
@@ -195,7 +195,7 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/storage/NFSEdit.js b/www/manager6/storage/NFSEdit.js
index 954cceb3..82cbd0b7 100644
--- a/www/manager6/storage/NFSEdit.js
+++ b/www/manager6/storage/NFSEdit.js
@@ -136,7 +136,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index f8ddef90..9baf402a 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -76,7 +76,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
/*jslint confusion: true*/
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
@@ -92,7 +92,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
allowBlank: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'krbd',
uncheckedValue: 0,
fieldLabel: 'KRBD'
diff --git a/www/manager6/storage/SheepdogEdit.js b/www/manager6/storage/SheepdogEdit.js
index da56b5c8..5e830d46 100644
--- a/www/manager6/storage/SheepdogEdit.js
+++ b/www/manager6/storage/SheepdogEdit.js
@@ -42,7 +42,7 @@ Ext.define('PVE.storage.SheepdogInputPanel', {
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js
index bc9d8baf..631eadc0 100644
--- a/www/manager6/storage/ZFSEdit.js
+++ b/www/manager6/storage/ZFSEdit.js
@@ -71,7 +71,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
@@ -85,14 +85,14 @@ Ext.define('PVE.storage.ZFSInputPanel', {
allowBlank: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'sparse',
checked: false,
uncheckedValue: 0,
fieldLabel: gettext('Thin provision')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'writecache',
checked: true,
uncheckedValue: 0,
diff --git a/www/manager6/storage/ZFSPoolEdit.js b/www/manager6/storage/ZFSPoolEdit.js
index cd544b6e..32231b9c 100644
--- a/www/manager6/storage/ZFSPoolEdit.js
+++ b/www/manager6/storage/ZFSPoolEdit.js
@@ -96,14 +96,14 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
/*jslint confusion: false*/
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'sparse',
checked: false,
uncheckedValue: 0,
diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js
index 1c46a072..618c95cb 100644
--- a/www/manager6/window/Restore.js
+++ b/www/manager6/window/Restore.js
@@ -55,7 +55,7 @@ Ext.define('PVE.window.Restore', {
if (me.vmtype === 'lxc') {
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'unprivileged',
value: '',
fieldLabel: gettext('Unprivileged container')
--
2.14.2
More information about the pve-devel
mailing list