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 \ Subscription.js \
DataStorePrune.js \ DataStorePrune.js \
DataStoreConfig.js \ DataStoreConfig.js \
DataStoreStatus.js \
DataStoreContent.js \ DataStoreContent.js \
ServerAdministration.js \ ServerAdministration.js \
Dashboard.js \ Dashboard.js \

View File

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