From 34f68073a28d3dacc4162df7c0e2421cb527afe1 Mon Sep 17 00:00:00 2001 From: vera-liu Date: Fri, 24 Feb 2017 13:34:39 -0800 Subject: [PATCH] Default action to overwrite for users with overwrite permissions (#2257) --- superset/assets/javascripts/explorev2/components/SaveModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/assets/javascripts/explorev2/components/SaveModal.js b/superset/assets/javascripts/explorev2/components/SaveModal.js index 2956f37ebb59c..46a99e38e1c54 100644 --- a/superset/assets/javascripts/explorev2/components/SaveModal.js +++ b/superset/assets/javascripts/explorev2/components/SaveModal.js @@ -26,7 +26,7 @@ class SaveModal extends React.Component { newSliceName: '', dashboards: [], alert: null, - action: 'saveas', + action: props.can_overwrite ? 'overwrite' : 'saveas', addToDash: 'noSave', }; }