]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/node/DNSView.js
dns/time: small refactorings, style
[proxmox-widget-toolkit.git] / src / node / DNSView.js
index e40e5a1a42456ebff9d89eefdb059db97e8c81ca..d16b2872f5f732ea4236fd18d0b495f712aa4924 100644 (file)
@@ -9,15 +9,13 @@ Ext.define('Proxmox.node.DNSView', {
            throw "no node name specified";
        }
 
-       let run_editor = function() {
-           let win = Ext.create('Proxmox.node.DNSEdit', {
-               nodename: me.nodename,
-           });
-           win.show();
-       };
+       let run_editor = () => Ext.create('Proxmox.node.DNSEdit', {
+           autoShow: true,
+           nodename: me.nodename,
+       });
 
        Ext.apply(me, {
-           url: "/api2/json/nodes/" + me.nodename + "/dns",
+           url: `/api2/json/nodes/${me.nodename}/dns`,
            cwidth1: 130,
            interval: 1000,
            run_editor: run_editor,