]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: storage content view: allow to define handler for item double-click
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 13 Mar 2024 13:45:41 +0000 (14:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2024 14:17:43 +0000 (15:17 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/ContentView.js

index 2761b48e37f39db79f9c16d3c0364d7f85182028..cb0d59e0706e580c056ad67fe26d4a341969b186 100644 (file)
@@ -3,6 +3,8 @@ Ext.define('PVE.storage.ContentView', {
 
     alias: 'widget.pveStorageContentView',
 
+    itemdblclick: Ext.emptyFn,
+
     viewConfig: {
        trackOver: false,
        loadMask: false,
@@ -207,6 +209,7 @@ Ext.define('PVE.storage.ContentView', {
            columns: columns,
            listeners: {
                activate: reload,
+               itemdblclick: (view, record) => me.itemdblclick(view, record),
            },
        });