Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the "Show in X tab" label in the Metric Explorer automatically based on whether the dashboard is enabled #1400

Merged
merged 6 commits into from
Dec 3, 2020
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions html/gui/js/modules/metric_explorer/MetricExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3336,16 +3336,19 @@ Ext.extend(XDMoD.Module.MetricExplorer, XDMoD.PortalModule, {

// ---------------------------------------------------------

var summaryTab = Ext.getCmp('tg_summary');
var summaryTabName = summaryTab ? summaryTab.title : 'Summary';

this.featuredCheckbox = new Ext.form.Checkbox({
id: 'me_featured',
fieldLabel: 'Featured',
name: 'featured',
boxLabel: 'Show in Summary tab',
boxLabel: 'Show in ' + summaryTabName + ' tab',
checked: this.featured,
listeners: {
scope: this,
'check': function(checkbox, check) {
XDMoD.TrackEvent('Metric Explorer', 'Toggled Show in Summary tab checkbox', Ext.encode({
XDMoD.TrackEvent('Metric Explorer', 'Toggled Show in ' + summaryTabName + ' tab checkbox', Ext.encode({
checked: check
}));

Expand Down