Give new-section a specific init_type to distinguish it

Bug: T265099
Change-Id: I0117a41ec44263162621a34cf045b13650c6918c
This commit is contained in:
David Lynch 2021-01-12 00:34:24 -06:00 committed by Bartosz Dziewoński
parent d76143bc08
commit 5696495754
2 changed files with 9 additions and 1 deletions

View file

@ -98,6 +98,10 @@ CommentController.prototype.getTranscludedFromSource = function ( commentId ) {
return promise;
};
/* Static properties */
CommentController.static.initType = 'page';
/* Methods */
CommentController.prototype.onReplyLinkClick = function ( e ) {
@ -143,7 +147,7 @@ CommentController.prototype.setup = function ( mode ) {
logger( {
action: 'init',
type: 'page',
type: this.constructor.static.initType || 'page',
mechanism: 'click',
// TODO: Use 'wikitext-2017' when config.enable2017Wikitext is set
// eslint-disable-next-line camelcase

View file

@ -36,6 +36,10 @@ function NewTopicController( $pageContainer, $replyLink ) {
OO.inheritClass( NewTopicController, CommentController );
/* Static properties */
NewTopicController.static.initType = 'section';
/* Methods */
/**