Skip to content

Commit

Permalink
[0.24 fixedMergeConflicts] when num_period_compare is not set (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and hughhhh committed Apr 11, 2018
1 parent d6c4adc commit cf25a6e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions superset/assets/javascripts/explore/stores/controls.jsx
Expand Up @@ -1150,6 +1150,17 @@ export const controls = {
default: '.3s',
choices: D3_FORMAT_OPTIONS,
description: D3_FORMAT_DOCS,
mapStateToProps: (state) => {
const showWarning = (
state.controls &&
state.controls.num_period_compare &&
state.controls.num_period_compare.value !== '');
return {
warning: showWarning ?
t('When `Period Ratio` is set, the Y Axis Format is forced to `.1%`') : null,
disabled: showWarning,
};
},
},

y_axis_2_format: {
Expand Down

0 comments on commit cf25a6e

Please sign in to comment.