ui: enable experimental tape UI if tape.cfg exists
This commit is contained in:
@ -5,9 +5,6 @@ IMAGES := \
|
||||
images/logo-128.png \
|
||||
images/proxmox_logo.png
|
||||
|
||||
TAPE_UI_FILES=
|
||||
|
||||
ifdef TEST_TAPE_GUI
|
||||
TAPE_UI_FILES= \
|
||||
tape/form/AllocationSelector.js \
|
||||
tape/form/ChangerSelector.js \
|
||||
@ -18,7 +15,7 @@ TAPE_UI_FILES= \
|
||||
tape/form/KeySelector.js \
|
||||
tape/window/ChangerEdit.js \
|
||||
tape/window/DriveEdit.js \
|
||||
tape/window/Erase.js \
|
||||
tape/window/Erase.js \
|
||||
tape/window/EncryptionEdit.js \
|
||||
tape/window/LabelMedia.js \
|
||||
tape/window/PoolEdit.js \
|
||||
@ -34,9 +31,7 @@ TAPE_UI_FILES= \
|
||||
tape/PoolConfig.js \
|
||||
tape/TapeInventory.js \
|
||||
tape/BackupJobs.js \
|
||||
tape/TapeManagement.js \
|
||||
|
||||
endif
|
||||
tape/TapeManagement.js
|
||||
|
||||
JSSRC= \
|
||||
Utils.js \
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -31,6 +31,9 @@
|
||||
UserName: "{{ UserName }}",
|
||||
CSRFPreventionToken: "{{ CSRFPreventionToken }}",
|
||||
};
|
||||
PBS = {
|
||||
enableTapeUI: {{ enableTapeUI }},
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="/widgettoolkit/proxmoxlib.js"></script>
|
||||
<script type="text/javascript" src="/extjs/locale/locale-en.js"></script>
|
||||
|
Reference in New Issue
Block a user