Skip to content
Draft

wip #212

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion platform_plugin_aspects/static/js/embed_dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function fetchGuestToken() {
}

function _embedDashboard(dashboard_uuid, superset_url, xblock_id){
console.log('---------testtesttest--------');
window.supersetEmbeddedSdk
.embedDashboard({
id: dashboard_uuid, // given by the Superset embedding UI
Expand All @@ -67,7 +68,22 @@ function _embedDashboard(dashboard_uuid, superset_url, xblock_id){
/*
Perform extra operations on the dashboard object or the container
when the dashboard is loaded
*/
*/
console.log('---------testtesttest--------');
dashboard.setThemeConfig({
theme_default: {
token: {
colorPrimary: "#2893B3",
fontFamily: "Inter, sans-serif"
}
},
theme_dark: {
algorithm: "dark",
token: {
colorPrimary: "#2893B3"
}
}
});
});
}

Expand Down
Loading