mediawiki-extensions-Discus.../modules/dt.ui.UsernameCompletionTool.js
Ed Sanders 38d85268f0 Add user mention tool
Uses userAvatar for now while we wait on userAdd to be upstreamed.

Bug: T254366
Change-Id: Ifa512c518efa9740a138d3d42fc607f2840b4040
2020-06-11 20:53:49 +01:00

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 );