Default action to overwrite for users with overwrite permissions (#2257)

This commit is contained in:
vera-liu 2017-02-24 13:34:39 -08:00 committed by GitHub
parent acc880c4df
commit 34f68073a2

View File

@ -26,7 +26,7 @@ class SaveModal extends React.Component {
newSliceName: '',
dashboards: [],
alert: null,
action: 'saveas',
action: props.can_overwrite ? 'overwrite' : 'saveas',
addToDash: 'noSave',
};
}