From 4183c5557fce7e274f79faf10c87d980c5716a8d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 7 Sep 2017 12:09:25 +0200 Subject: [PATCH] NavigationTree - move statistics up one level --- js/NavigationTree.js | 109 +++++++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 51 deletions(-) diff --git a/js/NavigationTree.js b/js/NavigationTree.js index 2ac58f2..e461a89 100644 --- a/js/NavigationTree.js +++ b/js/NavigationTree.js @@ -94,57 +94,6 @@ Ext.define('PMG.store.NavigationStore', { path: 'pmgServerAdministration', expanded: true, children: [ - { - text: gettext('Statistics'), - iconCls: 'fa fa-bar-chart', - border: false, - path: 'pmgGeneralMailStatistics', - expanded: true, - children: [ - { - text: gettext('Spam Scores'), - path: 'pmgSpamScoreDistribution', - border: false, - leaf: true - }, - { - text: gettext('Virus Charts'), - path: 'pmgVirusCharts', - border: false, - leaf: true - }, - { - text: gettext('Hourly Distribution'), - path: 'pmgHourlyMailDistribution', - border: false, - leaf: true - }, - { - text: gettext('Domain'), - path: 'pmgDomainStatistics', - border: false, - leaf: true - }, - { - text: gettext('Sender'), - path: 'pmgSenderStatistics', - border: false, - leaf: true - }, - { - text: gettext('Receiver'), - path: 'pmgReceiverStatistics', - border: false, - leaf: true - }, - { - text: gettext('Contact'), - path: 'pmgContactStatistics', - border: false, - leaf: true - } - ] - }, { text: gettext('Quarantine'), iconCls: 'fa fa-cubes', @@ -164,6 +113,64 @@ Ext.define('PMG.store.NavigationStore', { leaf: true, } ] + }, + { + text: gettext('Statistics'), + iconCls: 'fa fa-bar-chart', + border: false, + path: 'pmgGeneralMailStatistics', + expanded: true, + children: [ + { + text: gettext('Spam Scores'), + iconCls: 'fa fa-table', + path: 'pmgSpamScoreDistribution', + border: false, + leaf: true + }, + { + text: gettext('Virus Charts'), + iconCls: 'fa fa-bug', + path: 'pmgVirusCharts', + border: false, + leaf: true + }, + { + text: gettext('Hourly Distribution'), + iconCls: 'fa fa-area-chart', + path: 'pmgHourlyMailDistribution', + border: false, + leaf: true + }, + { + text: gettext('Domain'), + iconCls: 'fa fa-table', + path: 'pmgDomainStatistics', + border: false, + leaf: true + }, + { + text: gettext('Sender'), + iconCls: 'fa fa-table', + path: 'pmgSenderStatistics', + border: false, + leaf: true + }, + { + text: gettext('Receiver'), + iconCls: 'fa fa-table', + path: 'pmgReceiverStatistics', + border: false, + leaf: true + }, + { + text: gettext('Contact'), + iconCls: 'fa fa-table', + path: 'pmgContactStatistics', + border: false, + leaf: true + } + ] } ] }