@@ -108,7 +108,9 @@ export default class DeputyRootSession {
108
108
window . deputy . session . init ( ) ;
109
109
} ) ;
110
110
111
- firstHeading . insertAdjacentElement (
111
+ casePage . normalizeSectionHeading (
112
+ firstHeading
113
+ ) . insertAdjacentElement (
112
114
'beforebegin' ,
113
115
unwrapWidget ( messageBox )
114
116
) ;
@@ -134,7 +136,9 @@ export default class DeputyRootSession {
134
136
const lastActiveSection =
135
137
DeputyRootSession . findFirstLastActiveSection ( casePage ) ;
136
138
const firstSection =
137
- casePage . findFirstContributionSurveyHeading ( ) ;
139
+ casePage . normalizeSectionHeading (
140
+ casePage . findFirstContributionSurveyHeading ( )
141
+ ) ;
138
142
139
143
// Insert element directly into widget (not as text, or else event
140
144
// handlers will be destroyed).
@@ -216,7 +220,8 @@ export default class DeputyRootSession {
216
220
return mw . loader . using (
217
221
[ 'oojs-ui-core' , 'oojs-ui.styles.icons-content' ] ,
218
222
( ) => {
219
- const firstHeading = casePage . findFirstContributionSurveyHeading ( ) ;
223
+ const firstHeading =
224
+ casePage . findFirstContributionSurveyHeading ( ) ;
220
225
if ( firstHeading ) {
221
226
const messageBox = DeputyMessageWidget ( {
222
227
classes : [
@@ -227,7 +232,9 @@ export default class DeputyRootSession {
227
232
message : mw . msg ( 'deputy.session.tabActive.help' ) ,
228
233
closable : true
229
234
} ) ;
230
- firstHeading . insertAdjacentElement (
235
+ casePage . normalizeSectionHeading (
236
+ firstHeading
237
+ ) . insertAdjacentElement (
231
238
'beforebegin' ,
232
239
unwrapWidget ( messageBox )
233
240
) ;
0 commit comments