Add icon property to echo link data for modern Vector

Bug: T285259
Change-Id: I995f877a6e8574a519aedece31e7889b9735366a
This commit is contained in:
bwang 2021-07-15 16:06:55 -05:00 committed by Bernard Wang
parent cadd47489a
commit fbde7bd61b

View file

@ -1089,6 +1089,8 @@ class EchoHooks implements RecentChange_saveHook {
[
// Hardcode id, which is needed to dismiss the talk alert notification
'id' => 'pt-talk-alert',
// unset the icon
'icon' => null,
'text' => $skinTemplate->msg( 'echo-new-messages' )->text(),
'class' => [ 'mw-echo-alert' ],
]
@ -1106,6 +1108,8 @@ class EchoHooks implements RecentChange_saveHook {
],
// This item used to be part of personal tools, and much CSS relies on it using this id.
'id' => 'pt-notifications-alert',
// This property is used by modern Vector to add mw-icon classes
'icon' => 'bell',
];
$links['notifications']['notifications-notice'] = [
@ -1119,6 +1123,8 @@ class EchoHooks implements RecentChange_saveHook {
],
// This item used to be part of personal tools, and much CSS relies on it using this id.
'id' => 'pt-notifications-notice',
// This property is used by modern Vector to add mw-icon classes
'icon' => 'tray',
];
if ( $hasUnseen ) {