From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 1/2] ui: tape/DriveConfig: remove label/catalog/eject buttons
Date: Mon, 1 Mar 2021 14:13:40 +0100 [thread overview]
Message-ID: <20210301131341.30356-1-d.csapak@proxmox.com> (raw)
they live now in the drive status panel
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
www/tape/DriveConfig.js | 58 -----------------------------------------
1 file changed, 58 deletions(-)
diff --git a/www/tape/DriveConfig.js b/www/tape/DriveConfig.js
index 70b3870d..4845a8bc 100644
--- a/www/tape/DriveConfig.js
+++ b/www/tape/DriveConfig.js
@@ -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: [
{
--
2.20.1
next reply other threads:[~2021-03-01 13:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 13:13 Dominik Csapak [this message]
2021-03-01 13:13 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: tape: fix eslint warnings Dominik Csapak
2021-03-01 13:19 ` [pbs-devel] applied: [PATCH proxmox-backup 1/2] ui: tape/DriveConfig: remove label/catalog/eject buttons Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210301131341.30356-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal