add DataStoreStatus.js dummy

This commit is contained in:
Dietmar Maurer 2020-04-29 11:22:05 +02:00
parent de1f8f1d36
commit acb428cdec
3 changed files with 13 additions and 3 deletions

9
www/DataStoreStatus.js Normal file
View File

@ -0,0 +1,9 @@
Ext.define('PBS.DataStoreStatus', {
extend: 'Ext.panel.Panel',
alias: 'widget.pbsDataStoreStatus',
title: gettext('Data Store Status'),
html: "Add fancy datastore dashboard...",
});

View File

@ -14,6 +14,7 @@ JSSRC= \
Subscription.js \
DataStorePrune.js \
DataStoreConfig.js \
DataStoreStatus.js \
DataStoreContent.js \
ServerAdministration.js \
Dashboard.js \

View File

@ -67,17 +67,17 @@ Ext.define('PBS.view.main.NavigationTree', {
let root = view.getStore().getRoot();
if (!root.findChild('path', 'pbsDataStoreList', false)) {
if (!root.findChild('path', 'pbsDataStoreStatus', false)) {
root.appendChild({
text: gettext('Data Store'),
expanded: true,
iconCls: 'fa fa-archive',
path: 'pbsDataStoreList',
path: 'pbsDataStoreStatus',
leaf: false
});
}
var list = root.findChild('path', 'pbsDataStoreList', false);
var list = root.findChild('path', 'pbsDataStoreStatus', false);
var length = records.length;
var lookup_hash = {};
for (var i = 0; i < length; i++) {