You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2022/04/27 05:29:08 UTC

[superset] branch add-class-to-dashboard-with-chart-id updated: feat: adds `chartId`-based class to dashboard chart holder

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch add-class-to-dashboard-with-chart-id
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/add-class-to-dashboard-with-chart-id by this push:
     new 79cf5cbb47 feat: adds `chartId`-based class to dashboard chart holder
79cf5cbb47 is described below

commit 79cf5cbb474e98a56afaecd31fb7551d94f48bfb
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Tue Apr 26 23:28:54 2022 -0600

    feat: adds `chartId`-based class to dashboard chart holder
---
 .../src/dashboard/components/gridComponents/ChartHolder.jsx              | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset-frontend/src/dashboard/components/gridComponents/ChartHolder.jsx b/superset-frontend/src/dashboard/components/gridComponents/ChartHolder.jsx
index 95fb967c77..a013679915 100644
--- a/superset-frontend/src/dashboard/components/gridComponents/ChartHolder.jsx
+++ b/superset-frontend/src/dashboard/components/gridComponents/ChartHolder.jsx
@@ -344,6 +344,7 @@ class ChartHolder extends React.Component {
               className={cx(
                 'dashboard-component',
                 'dashboard-component-chart-holder',
+                `dashboard-chart-id-${chartId}`,
                 this.state.outlinedComponentId ? 'fade-in' : 'fade-out',
                 isFullSize && 'full-size',
               )}