mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
[explore] refactor slice action button group (#1074)
* pull explore actions button group into component * use button component * make sure we render all action buttons * test that embed code is correct * don't need before each * generalize modal trigger for use with plain links or icons
This commit is contained in:
@@ -33,6 +33,7 @@ class QueryTable extends React.Component {
|
||||
this.props.actions.queryEditorSetSql({ id: query.sqlEditorId }, query.sql);
|
||||
}
|
||||
notImplemented() {
|
||||
/* eslint no-alert: 0 */
|
||||
alert('Not implemented yet!');
|
||||
}
|
||||
render() {
|
||||
|
||||
@@ -10,6 +10,7 @@ let queryCount = 1;
|
||||
|
||||
class QueryEditors extends React.Component {
|
||||
renameTab(qe) {
|
||||
/* eslint no-alert: 0 */
|
||||
const newTitle = prompt('Enter a new title for the tab');
|
||||
if (newTitle) {
|
||||
this.props.actions.queryEditorSetTitle(qe, newTitle);
|
||||
|
||||
Reference in New Issue
Block a user