ui: make Datastore clickable again

by showing the previously added pbsDataStores panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-11-09 16:01:30 +01:00 committed by Thomas Lamprecht
parent 2371c1e371
commit ed1329ecf7

View File

@ -87,6 +87,7 @@ Ext.define('PBS.store.NavigationStore', {
text: gettext('Datastore'), text: gettext('Datastore'),
iconCls: 'fa fa-archive', iconCls: 'fa fa-archive',
id: 'datastores', id: 'datastores',
path: 'pbsDataStores',
expanded: true, expanded: true,
expandable: false, expandable: false,
leaf: false, leaf: false,
@ -174,9 +175,6 @@ Ext.define('PBS.view.main.NavigationTree', {
listeners: { listeners: {
itemclick: function(tl, info) { itemclick: function(tl, info) {
if (info.node.data.id === 'datastores') {
return false;
}
if (info.node.data.id === 'addbutton') { if (info.node.data.id === 'addbutton') {
let me = this; let me = this;
Ext.create('PBS.DataStoreEdit', { Ext.create('PBS.DataStoreEdit', {