mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 05:10:50 +00:00
38d85268f0
Uses userAvatar for now while we wait on userAdd to be upstreamed. Bug: T254366 Change-Id: Ifa512c518efa9740a138d3d42fc607f2840b4040
15 lines
583 B
JavaScript
15 lines
583 B
JavaScript
function MWUsernameCompletionTool() {
|
|
// Parent constructor
|
|
MWUsernameCompletionTool.super.apply( this, arguments );
|
|
}
|
|
|
|
OO.inheritClass( MWUsernameCompletionTool, ve.ui.Tool );
|
|
|
|
// Static
|
|
MWUsernameCompletionTool.static.commandName = 'insertAndOpenMWUsernameCompletions';
|
|
MWUsernameCompletionTool.static.name = 'usernameCompletion';
|
|
MWUsernameCompletionTool.static.icon = 'userAvatar'; // TODO: should be 'userAdd';
|
|
MWUsernameCompletionTool.static.title = OO.ui.deferMsg( 'discussiontools-replywidget-mention-tool-title' );
|
|
|
|
ve.ui.toolFactory.register( MWUsernameCompletionTool );
|