mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
Edit Dashboard title and Slice title in place (#2940)
* Edit Dashboard title and Slice title in place Add EditableTitle component into Dashboard and Explore view to support edit title inline.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/* eslint camelcase: 0 */
|
||||
import URI from 'urijs';
|
||||
|
||||
export function getExploreUrl(form_data, endpointType = 'base', force = false, curUrl = null) {
|
||||
export function getExploreUrl(form_data, endpointType = 'base', force = false,
|
||||
curUrl = null, requestParams = {}) {
|
||||
if (!form_data.datasource) {
|
||||
return null;
|
||||
}
|
||||
@@ -38,6 +39,14 @@ export function getExploreUrl(form_data, endpointType = 'base', force = false, c
|
||||
if (endpointType === 'query') {
|
||||
search.query = 'true';
|
||||
}
|
||||
const paramNames = Object.keys(requestParams);
|
||||
if (paramNames.length) {
|
||||
paramNames.forEach((name) => {
|
||||
if (requestParams.hasOwnProperty(name)) {
|
||||
search[name] = requestParams[name];
|
||||
}
|
||||
});
|
||||
}
|
||||
uri = uri.search(search).directory(directory);
|
||||
return uri.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user