[pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/DriveStatus: show that no tape is loaded in grid title

Dominik Csapak d.csapak at proxmox.com
Tue Apr 13 10:18:52 CEST 2021


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/tape/DriveStatus.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/tape/DriveStatus.js b/www/tape/DriveStatus.js
index d4783560..feca6ede 100644
--- a/www/tape/DriveStatus.js
+++ b/www/tape/DriveStatus.js
@@ -44,6 +44,8 @@ Ext.define('PBS.TapeManagement.DriveStatus', {
 	    let online = statusgrid.getObjectValue('file-number') !== undefined;
 	    let vm = me.getViewModel();
 	    vm.set('online', online);
+	    let title = online ? gettext('Status') : gettext('Status (No Tape loaded)');
+	    statusgrid.setTitle(title);
 	},
 
 	onStateLoad: function(store) {
-- 
2.20.1






More information about the pbs-devel mailing list