You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cc...@apache.org on 2018/06/22 00:54:36 UTC
[incubator-superset] 21/26: Fix: Should pass slice_can_edit flag
down (#5159)
This is an automated email from the ASF dual-hosted git repository.
ccwilliams pushed a commit to branch dashboard-builder
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit f9733979d02b11632e78495274b1a855572949de
Author: Grace Guo <gr...@airbnb.com>
AuthorDate: Thu Jun 7 11:03:11 2018 -0700
Fix: Should pass slice_can_edit flag down (#5159)
---
superset/assets/src/dashboard/components/SliceHeader.jsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/superset/assets/src/dashboard/components/SliceHeader.jsx b/superset/assets/src/dashboard/components/SliceHeader.jsx
index 50a2a5d..d812181 100644
--- a/superset/assets/src/dashboard/components/SliceHeader.jsx
+++ b/superset/assets/src/dashboard/components/SliceHeader.jsx
@@ -22,6 +22,7 @@ const propTypes = {
annotationError: PropTypes.object,
sliceName: PropTypes.string,
supersetCanExplore: PropTypes.bool,
+ sliceCanEdit: PropTypes.bool,
};
const defaultProps = {
@@ -40,6 +41,7 @@ const defaultProps = {
isExpanded: false,
sliceName: '',
supersetCanExplore: false,
+ sliceCanEdit: false,
};
class SliceHeader extends React.PureComponent {
@@ -56,6 +58,7 @@ class SliceHeader extends React.PureComponent {
innerRef,
sliceName,
supersetCanExplore,
+ sliceCanEdit,
} = this.props;
const annoationsLoading = t('Annotation layers are still loading.');
@@ -104,6 +107,7 @@ class SliceHeader extends React.PureComponent {
exploreChart={exploreChart}
exportCSV={exportCSV}
supersetCanExplore={supersetCanExplore}
+ sliceCanEdit={sliceCanEdit}
/>
)}
</div>