ui: tape/DriveStatus: show that no tape is loaded in grid title

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-04-13 10:18:52 +02:00 committed by Dietmar Maurer
parent ecc5602c88
commit 646fc7f086
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ Ext.define('PBS.TapeManagement.DriveStatus', {
let online = statusgrid.getObjectValue('file-number') !== undefined; let online = statusgrid.getObjectValue('file-number') !== undefined;
let vm = me.getViewModel(); let vm = me.getViewModel();
vm.set('online', online); vm.set('online', online);
let title = online ? gettext('Status') : gettext('Status (No Tape loaded)');
statusgrid.setTitle(title);
}, },
onStateLoad: function(store) { onStateLoad: function(store) {