mirror of https://github.com/rancher/dashboard.git
Do theme name concversion
This commit is contained in:
parent
3d768b6b7d
commit
213f40613b
|
|
@ -24,7 +24,6 @@ export default {
|
|||
},
|
||||
|
||||
data() {
|
||||
|
||||
return {
|
||||
iframeEl: null,
|
||||
loaded: true,
|
||||
|
|
@ -106,10 +105,12 @@ export default {
|
|||
const iframeEl = document.getElementById(EMBER_FRAME);
|
||||
|
||||
if (iframeEl) {
|
||||
const emberTheme = theme === 'light' ? 'ui-light' : 'ui-dark';
|
||||
|
||||
// Ensure the embedded UI uses the correct theme
|
||||
iframeEl.contentWindow.postMessage({
|
||||
action: 'set-theme',
|
||||
name: theme
|
||||
name: emberTheme
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue