mediawiki-extensions-Discus.../modules/AbandonTopicDialog.js
Bartosz Dziewoński 37b574f165 Separate dialog for abandoning a new topic
Bug: T269190
Change-Id: Ie4f486b0641edea369702631556d8ea31f991370
2021-01-19 21:40:21 +01:00

20 lines
732 B
JavaScript

function AbandonTopicDialog() {
// Parent constructor
AbandonTopicDialog.super.apply( this, arguments );
}
/* Inheritance */
OO.inheritClass( AbandonTopicDialog, mw.widgets.AbandonEditDialog );
AbandonTopicDialog.static.name = 'abandontopic';
AbandonTopicDialog.static.message = OO.ui.deferMsg( 'discussiontools-replywidget-abandontopic' );
AbandonTopicDialog.static.actions = OO.copy( AbandonTopicDialog.static.actions );
AbandonTopicDialog.static.actions[ 0 ].label =
OO.ui.deferMsg( 'discussiontools-replywidget-abandontopic-discard' );
AbandonTopicDialog.static.actions[ 1 ].label =
OO.ui.deferMsg( 'discussiontools-replywidget-abandontopic-keep' );
OO.ui.getWindowManager().addWindows( [ new AbandonTopicDialog() ] );