From ed0d080e87b138e4051c151caca47207ba071d06 Mon Sep 17 00:00:00 2001 From: Joseph White Date: Tue, 17 Sep 2019 09:40:47 -0400 Subject: [PATCH] Update help for Center Report component. Also switch to using the standard inheritance model. --- .../images/help/centerreport-component.svg | 1 + .../dashboard/CenterReportCardComponent.js | 46 +++---------------- 2 files changed, 7 insertions(+), 40 deletions(-) create mode 100644 html/gui/images/help/centerreport-component.svg diff --git a/html/gui/images/help/centerreport-component.svg b/html/gui/images/help/centerreport-component.svg new file mode 100644 index 0000000..e4cab23 --- /dev/null +++ b/html/gui/images/help/centerreport-component.svg @@ -0,0 +1 @@ + diff --git a/html/gui/js/modules/dashboard/CenterReportCardComponent.js b/html/gui/js/modules/dashboard/CenterReportCardComponent.js index 356812e..5e302dd 100644 --- a/html/gui/js/modules/dashboard/CenterReportCardComponent.js +++ b/html/gui/js/modules/dashboard/CenterReportCardComponent.js @@ -31,57 +31,23 @@ Ext.namespace('XDMoD.Module.Dashboard'); * - `this.gridstore.listeners.load` * - `this.gridstore.listeners.exception` */ -XDMoD.Module.Dashboard.CenterReportCardComponent = Ext.extend(Ext.ux.Portlet, { +XDMoD.Module.Dashboard.CenterReportCardComponent = Ext.extend(CCR.xdmod.ui.Portlet, { layout: 'fit', autoScroll: true, titleBase: 'Center Report Card', - tools: [ - { - id: 'help', - qtip: [ - '' - ].join(' '), - qwidth: 60 - } - ], - /** * Constructor for the CenterReportCardComponent. */ initComponent: function () { var self = this; + this.help = { + title: this.titleBase, + html: '' + }; + var aspectRatio = 11.0 / 17.0; this.height = this.width * aspectRatio;