]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/node/NodeOptionsView.js
1 Ext
.define('Proxmox.node.NodeOptionsView', {
2 extend
: 'Proxmox.grid.ObjectGrid',
3 alias
: ['widget.proxmoxNodeOptionsView'],
4 mixins
: ['Proxmox.Mixin.CBind'],
6 cbindData: function(_initialconfig
) {
9 let baseUrl
= `/nodes/${me.nodename}/config`;
10 me
.url
= `/api2/json${baseUrl}`;
12 url
: `/api2/extjs/${baseUrl}`,
19 itemdblclick: function() { this.run_editor(); },
20 activate: function() { this.rstore
.startUpdate(); },
21 destroy: function() { this.rstore
.stopUpdate(); },
22 deactivate: function() { this.rstore
.stopUpdate(); },
27 text
: gettext('Edit'),
28 xtype
: 'proxmoxButton',
30 handler
: btn
=> btn
.up('grid').run_editor(),
37 name
: 'startall-onboot-delay',
38 text
: gettext('Start on boot delay'),
43 renderer: function(value
) {
44 if (value
=== undefined) {
45 return Proxmox
.Utils
.defaultText
;
48 let secString
= value
=== '1' ? gettext('Second') : gettext('Seconds');
49 return `${value} ${secString}`;
55 text
: gettext('Wake on LAN'),
58 renderer: function(value
) {
59 if (value
=== undefined) {
60 return Proxmox
.Utils
.NoneText
;