mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Add icon property to echo link data for modern Vector
Bug: T285259 Change-Id: I995f877a6e8574a519aedece31e7889b9735366a
This commit is contained in:
parent
cadd47489a
commit
fbde7bd61b
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue