proxmox-widget-toolkit/node/TimeEdit.js
Thomas Lamprecht 05a977a227 make eslint 100% happy
lots of churn and changes but will allow to enforce linting again in
the build system.

Also switch over from var to let.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 17:16:22 +02:00

39 lines
696 B
JavaScript

Ext.define('Proxmox.node.TimeEdit', {
extend: 'Proxmox.window.Edit',
alias: ['widget.proxmoxNodeTimeEdit'],
subject: gettext('Time zone'),
width: 400,
autoLoad: true,
fieldDefaults: {
labelWidth: 70,
},
items: {
xtype: 'combo',
fieldLabel: gettext('Time zone'),
name: 'timezone',
queryMode: 'local',
store: Ext.create('Proxmox.data.TimezoneStore'),
displayField: 'zone',
editable: true,
anyMatch: true,
forceSelection: true,
allowBlank: false,
},
initComponent: function() {
let me = this;
if (!me.nodename) {
throw "no node name specified";
}
me.url = "/api2/extjs/nodes/" + me.nodename + "/time";
me.callParent();
},
});