mediawiki-extensions-Discus.../modules/dt-ve/dt.ui.UsernameCompletionTool.js
Ed Sanders 03665de09e Move VE components to dt-ve
Change-Id: I4fba23e83d9ace833b55e67d1c3ef8b8da5ed19f
2020-06-22 20:09:18 +02: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 );