Skip to content

Commit

Permalink
Only mark as legacy if there's a replacement with same name; trigger …
Browse files Browse the repository at this point in the history
…CI; trigger CI; trigger CI.
  • Loading branch information
codyml committed Dec 20, 2022
1 parent da1dcb3 commit 3c41e19
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
import {
t,
ChartMetadata,
ChartPlugin,
hasGenericChartAxes,
} from '@superset-ui/core';
import transformProps from '../transformProps';
import thumbnail from './images/thumbnail.png';
import example1 from './images/Bar_Chart.jpg';
Expand All @@ -35,7 +40,7 @@ const metadata = new ChartMetadata({
{ url: example2, caption: 'Grouped style' },
{ url: example3 },
],
name: t('Bar Chart (legacy)'),
name: hasGenericChartAxes ? t('Bar Chart (legacy)') : t('Bar Chart'),
tags: [
t('Additive'),
t('Bar'),
Expand Down

0 comments on commit 3c41e19

Please sign in to comment.