mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 13:50:28 +00:00
copy form/Boolean.js from manager to manager5
This commit is contained in:
parent
056115579a
commit
70fd8ec2d1
17
www/manager5/form/Boolean.js
Normal file
17
www/manager5/form/Boolean.js
Normal file
@ -0,0 +1,17 @@
|
||||
// boolean type including 'Default' (delete property from file)
|
||||
Ext.define('PVE.form.Boolean', {
|
||||
extend: 'PVE.form.KVComboBox',
|
||||
alias: ['widget.booleanfield'],
|
||||
|
||||
initComponent: function() {
|
||||
var me = this;
|
||||
|
||||
me.data = [
|
||||
['', gettext('Default')],
|
||||
[1, gettext('Yes')],
|
||||
[0, gettext('No')]
|
||||
];
|
||||
|
||||
me.callParent();
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user