mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
chore(dashboard): Integrate dashboard app into the SPA bundle (#14356)
* chore(dashboard): Integrate dashboard app into the SPA bundle * fix url params * change variable name * change title correctly * custom css * lint * remove unused file * remove content assertions from dashboard tests * fix case with missing bootstrap data * fix: respect crud views flag * crud views -> spa * remove unused dashboard templates * fix: remove unused variable * fix: missed a spot with the crudViews -> spa * router link to dashboard from dashboard list page * link using the router when in card mode * lint * fix tests, add memory router * remove dashboard app files * split up the bundle a little more * use webpack preload
This commit is contained in:
committed by
GitHub
parent
158ac302d8
commit
21cf12a480
@@ -40,7 +40,11 @@ export function getUrlParam(paramName: string, type: UrlParamType): unknown {
|
||||
return Number(urlParam);
|
||||
}
|
||||
return null;
|
||||
// TODO: process other types when needed
|
||||
case 'boolean':
|
||||
if (!urlParam) {
|
||||
return null;
|
||||
}
|
||||
return urlParam !== 'false' && urlParam !== '0';
|
||||
default:
|
||||
return urlParam;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user