From 646fc7f0868b7e81bdb56c09ddc4ee4a56938430 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 13 Apr 2021 10:18:52 +0200 Subject: [PATCH] ui: tape/DriveStatus: show that no tape is loaded in grid title Signed-off-by: Dominik Csapak --- 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) {