Skip to content

Commit

Permalink
convert to DeputyMessageWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Nov 1, 2022
1 parent f69de96 commit f4c2585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
10 changes: 4 additions & 6 deletions src/session/DeputyRootSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import DeputyCasePage, { ContributionSurveyHeading } from '../wiki/DeputyCasePag
import DeputyCCISessionStartLink from '../ui/root/DeputyCCISessionStartLink';
import removeElement from '../util/removeElement';
import unwrapWidget from '../util/unwrapWidget';
import DeputyCCISessionTabActiveMessage from '../ui/root/DeputyCCISessionTabActiveMessage';
import sectionHeadingName from '../wiki/util/sectionHeadingName';
import {
DeputyMessageEvent,
Expand Down Expand Up @@ -203,14 +202,14 @@ export default class DeputyRootSession {
() => {
const firstHeading = casePage.findContributionSurveyHeadings()[ 0 ];
if ( firstHeading ) {
const messageBox = new OO.ui.MessageWidget( {
const messageBox = DeputyMessageWidget( {
classes: [
'deputy', 'dp-cs-session-notice', 'dp-cs-session-tabActive'
],
type: 'info',
label: new OO.ui.HtmlSnippet(
DeputyCCISessionTabActiveMessage().innerHTML
)
title: mw.msg( 'deputy.session.tabActive.head' ),
message: mw.msg( 'deputy.session.tabActive.help' ),
closable: true
} );
firstHeading.insertAdjacentElement(
'beforebegin',
Expand Down Expand Up @@ -582,5 +581,4 @@ export default class DeputyRootSession {
}
}
}

}
17 changes: 0 additions & 17 deletions src/ui/root/DeputyCCISessionTabActiveMessage.tsx

This file was deleted.

0 comments on commit f4c2585

Please sign in to comment.