@@ -14,7 +14,6 @@ import BrowserTabVisibility from '@shell/mixins/browser-tab-visibility';
1414import Inactivity from ' @shell/components/Inactivity' ;
1515import { mapGetters } from ' vuex' ;
1616import PromptModal from ' @shell/components/PromptModal' ;
17- import WindowManager from ' @shell/components/nav/WindowManager' ;
1817import { Layout } from ' @shell/types/window-manager' ;
1918
2019export default {
@@ -31,17 +30,17 @@ export default {
3130 SlideInPanelManager,
3231 AwsComplianceBanner,
3332 Inactivity,
34- WindowManager
3533 },
3634
3735 mixins: [Brand, BrowserTabVisibility],
3836
37+ inject: [' notifyWmContainerReady' ],
38+
3939 data () {
4040 return {
4141 // Assume home pages have routes where the name is the key to use for string lookup
4242 name: this .$route .name ,
43- noLocaleShortcut: process .env .dev || false ,
44- layout: Layout .plain ,
43+ noLocaleShortcut: process .env .dev || false
4544 };
4645 },
4746
@@ -50,6 +49,10 @@ export default {
5049 ... mapGetters ([' showTopLevelMenu' ]),
5150 },
5251
52+ mounted () {
53+ this .notifyWmContainerReady (Layout .plain );
54+ },
55+
5356 methods: {
5457 toggleTheme () {
5558 this .$store .dispatch (' prefs/toggleTheme' );
@@ -98,7 +101,12 @@ export default {
98101 @shortkey =" toggleNoneLocale()"
99102 />
100103 </main >
101- <WindowManager :layout =" layout" />
104+ <!-- Teleport target for WindowManager (unique per layout) -->
105+ <!-- display: contents makes child panels become grid items of the parent grid -->
106+ <div
107+ id =" wm-container-plain"
108+ style =" display : contents ;"
109+ />
102110 </div >
103111
104112 <FixedBanner :footer =" true" />
@@ -130,27 +138,6 @@ export default {
130138 }
131139 }
132140
133- .wm {
134- grid-area : wm;
135- overflow-y : hidden ;
136- z-index : z-index (' windowsManager' );
137- position : relative ;
138- }
139-
140- .wm-vr {
141- grid-area : wm- vr;
142- overflow-y : hidden ;
143- z-index : z-index (' windowsManager' );
144- position : relative ;
145- }
146-
147- .wm-vl {
148- grid-area : wm- vl;
149- overflow-y : hidden ;
150- z-index : z-index (' windowsManager' );
151- position : relative ;
152- }
153-
154141 MAIN {
155142 grid-area : main;
156143 overflow : auto ;
0 commit comments