]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tape/DriveConfig: remove label/catalog/eject buttons
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 1 Mar 2021 13:13:40 +0000 (14:13 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 1 Mar 2021 13:18:23 +0000 (14:18 +0100)
they live now in the drive status panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/tape/DriveConfig.js

index 70b3870ddb9f50b01698cfd0f9a70ca5b78cebf7..4845a8bc2f96deb787890c5814d5beab69b2a9d9 100644 (file)
@@ -55,20 +55,6 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
            });
        },
 
-       catalog: function(button, event, record) {
-           let me = this;
-           let drive = record.data.name;
-           PBS.Utils.driveCommand(drive, 'catalog', {
-               waitMsgTarget: me.getView(),
-               method: 'POST',
-               success: function(response) {
-                   Ext.create('Proxmox.window.TaskViewer', {
-                       upid: response.result.data,
-                   }).show();
-               },
-           });
-       },
-
        readLabel: function(view, rI, cI, button, el, record) {
            let me = this;
            let drive = record.data.name;
@@ -97,29 +83,6 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
            });
        },
 
-       labelMedia: function(button, event, record) {
-           let me = this;
-           let driveid = record.data.name;
-
-           Ext.create('PBS.TapeManagement.LabelMediaWindow', {
-               driveid,
-           }).show();
-       },
-
-       ejectMedia: function(button, event, record) {
-           let me = this;
-           let driveid = record.data.name;
-           PBS.Utils.driveCommand(driveid, 'eject-media', {
-               waitMsgTarget: me.getView(),
-               method: 'POST',
-               success: function(response) {
-                   Ext.create('Proxmox.window.TaskProgress', {
-                       upid: response.result.data,
-                   }).show();
-               },
-           });
-       },
-
        reload: function() {
            this.getView().getStore().rstore.load();
        },
@@ -192,27 +155,6 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
            baseurl: '/api2/extjs/config/drive',
            callback: 'reload',
        },
-       '-',
-       {
-           text: gettext('Label Media'),
-           xtype: 'proxmoxButton',
-           handler: 'labelMedia',
-           iconCls: 'fa fa-barcode',
-           disabled: true,
-       },
-       {
-           text: gettext('Eject'),
-           xtype: 'proxmoxButton',
-           handler: 'ejectMedia',
-           disabled: true,
-       },
-       {
-           text: gettext('Catalog'),
-           xtype: 'proxmoxButton',
-           handler: 'catalog',
-           iconCls: 'fa fa-book',
-           disabled: true,
-       },
     ],
     columns: [
        {