You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/04/07 03:59:19 UTC
[GitHub] [superset] betodealmeida commented on a change in pull request #13981: feat: FE: Export for Queries II
betodealmeida commented on a change in pull request #13981:
URL: https://github.com/apache/superset/pull/13981#discussion_r608323013
##########
File path: superset-frontend/src/views/CRUD/data/savedquery/SavedQueryList.tsx
##########
@@ -97,6 +98,7 @@ function SavedQueryList({
const canEdit = hasPerm('can_write');
const canDelete = hasPerm('can_write');
+ const canExport = hasPerm('can_read');
Review comment:
We should only show the export buttons if the `VERSIONED_EXPORT` feature flag is enabled, so this needs to be something like this:
```js
const canExport =
hasPerm('can_read') && isFeatureEnabled(FeatureFlag.VERSIONED_EXPORT);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org