mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Merge "Add tooltips for 'mark as read' and 'more options'"
This commit is contained in:
commit
c594852bf7
|
@ -133,6 +133,8 @@ $wgResourceModules += array(
|
|||
"notification-timestamp-ago-years",
|
||||
'echo-notification-markasread',
|
||||
'echo-notification-markasunread',
|
||||
'echo-notification-markasread-tooltip',
|
||||
'echo-notification-more-options-tooltip',
|
||||
'echo-notification-alert-text-only',
|
||||
'echo-notification-message-text-only',
|
||||
'echo-email-batch-bullet',
|
||||
|
|
|
@ -96,6 +96,8 @@
|
|||
"echo-notification-popup-loginrequired": "Please log in to view your notifications.",
|
||||
"echo-notification-markasread": "Mark as read",
|
||||
"echo-notification-markasunread": "Mark as unread",
|
||||
"echo-notification-markasread-tooltip": "Mark as read",
|
||||
"echo-notification-more-options-tooltip": "More options",
|
||||
"notification-link-text-expand-all": "View all",
|
||||
"notification-link-text-expand-alert-count": "View {{PLURAL:$1|$1 alert|$1 alerts}}",
|
||||
"notification-link-text-expand-message-count": "View {{PLURAL:$1|$1 message|$1 messages}}",
|
||||
|
|
|
@ -87,6 +87,8 @@
|
|||
"echo-notification-popup-loginrequired": "Message that displays when an anonymous user attempts to view notifications in their popup after a session expired.",
|
||||
"echo-notification-markasread": "Label for the button to mark the notification as read.",
|
||||
"echo-notification-markasunread": "Label for the button to mark the notification as unread.",
|
||||
"echo-notification-markasread-tooltip": "Tooltip for the button to mark the notification as read.",
|
||||
"echo-notification-more-options-tooltip": "Tooltip for the button to show the hidden secondary actions.",
|
||||
"notification-link-text-expand-all": "Label for the button that expands a bundled notification.\n{{Identical|View all}}",
|
||||
"notification-link-text-expand-alert-count": "Label for the button that expands a bundled alert notification.\n\nParameters:\n* $1 - The count of messages that the bundle holds.\n{{Identical|View alert}}",
|
||||
"notification-link-text-expand-message-count": "Label for the button that expands a bundled message notification.\n\nParameters:\n* $1 - The count of messages that the bundle holds.\n{{Identical|View message}}",
|
||||
|
|
|
@ -32,10 +32,11 @@
|
|||
this.$actions = $( '<div>' )
|
||||
.addClass( 'mw-echo-ui-notificationItemWidget-content-actions' );
|
||||
|
||||
// Mark unread
|
||||
// Mark as read
|
||||
this.markAsReadButton = new OO.ui.ButtonWidget( {
|
||||
icon: 'close',
|
||||
framed: false,
|
||||
title: mw.msg( 'echo-notification-markasread-tooltip' ),
|
||||
classes: [ 'mw-echo-ui-notificationItemWidget-markAsReadButton' ]
|
||||
} );
|
||||
|
||||
|
@ -76,6 +77,7 @@
|
|||
icon: 'ellipsis',
|
||||
$overlay: this.$overlay,
|
||||
menuWidth: 200,
|
||||
title: mw.msg( 'echo-notification-more-options-tooltip' ),
|
||||
classes: [ 'mw-echo-ui-notificationItemWidget-content-actions-menu' ]
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue