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 2020/09/29 22:09:20 UTC

[GitHub] [incubator-superset] rusackas commented on a change in pull request #11102: chore: refactor submenu's right nav to accept list of buttons

rusackas commented on a change in pull request #11102:
URL: https://github.com/apache/incubator-superset/pull/11102#discussion_r497089448



##########
File path: superset-frontend/src/views/CRUD/chart/ChartList.tsx
##########
@@ -466,13 +466,16 @@ function ChartList(props: ChartListProps) {
     <>
       <SubMenu
         name={t('Charts')}
-        secondaryButton={
+        buttons={
           canDelete
-            ? {
-                name: t('Bulk Select'),
-                onClick: toggleBulkSelect,
-              }
-            : undefined
+            ? [
+                {
+                  name: t('Bulk Select'),
+                  style: 'Primary',

Review comment:
       ```suggestion
                     style: 'primary',
   ```




----------------------------------------------------------------
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