ui: enable experimental tape UI if tape.cfg exists

This commit is contained in:
Dietmar Maurer
2021-03-03 08:27:54 +01:00
parent 347cde827b
commit 40bf636b47
6 changed files with 16 additions and 10 deletions

View File

@ -118,7 +118,7 @@ Ext.define('PBS.view.main.NavigationTree', {
view.rstore.on('load', this.onLoad, this);
view.on('destroy', view.rstore.stopUpdate);
if (PBS.TapeManagement !== undefined) {
if (PBS.enableTapeUI) {
view.tapestore = Ext.create('Proxmox.data.UpdateStore', {
autoStart: true,
interval: 2 * 1000,
@ -266,7 +266,7 @@ Ext.define('PBS.view.main.NavigationTree', {
select: function(path, silent) {
var me = this;
if (me.rstore.isLoaded() && (!PBS.TapeManagement || me.tapestore.isLoaded())) {
if (me.rstore.isLoaded() && (!PBS.enableTapeUI || me.tapestore.isLoaded())) {
if (silent) {
me.suspendEvents(false);
}