mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "Disable "Share feedback..." links by default"
This commit is contained in:
commit
af6f6e6149
|
@ -59,7 +59,8 @@
|
|||
"config": {
|
||||
"enable": "DiscussionToolsEnable",
|
||||
"replyIndentation": "DiscussionToolsReplyIndentation",
|
||||
"switchTime": "DiscussionToolsTimestampFormatSwitchTime"
|
||||
"switchTime": "DiscussionToolsTimestampFormatSwitchTime",
|
||||
"showFeedbackLinks": "DiscussionToolsShowFeedbackLinks"
|
||||
}
|
||||
},
|
||||
"ReplyLinksController.js",
|
||||
|
@ -546,6 +547,10 @@
|
|||
"value": "invisible",
|
||||
"description": "Reply indentation syntax to use: 'invisible' (use `<dl><dd>` tags to output `:` in wikitext) or 'bullet' (use `<ul><li>` tags to output `*` in wikitext)."
|
||||
},
|
||||
"DiscussionToolsShowFeedbackLinks": {
|
||||
"value": false,
|
||||
"description": "Show 'Share feedback...' links in the footer of reply tool and new topic tool."
|
||||
},
|
||||
"DiscussionToolsTimestampFormatSwitchTime": {
|
||||
"value": "2022-07-12",
|
||||
"description": "Date on which the internal timestamp format has changed (T304595), in ISO 8601 format."
|
||||
|
|
|
@ -85,5 +85,6 @@ module.exports = {
|
|||
HeadingItem: require( './HeadingItem.js' ),
|
||||
CommentItem: require( './CommentItem.js' ),
|
||||
utils: require( './utils.js' ),
|
||||
config: require( './config.json' ),
|
||||
logger: require( './logger.js' )
|
||||
};
|
||||
|
|
|
@ -5,7 +5,8 @@ var controller = require( 'ext.discussionTools.init' ).controller,
|
|||
ModeTabOptionWidget = require( './ModeTabOptionWidget.js' ),
|
||||
licenseMessages = require( './licenseMessages.json' ),
|
||||
featuresEnabled = mw.config.get( 'wgDiscussionToolsFeaturesEnabled' ) || {},
|
||||
enable2017Wikitext = featuresEnabled.sourcemodetoolbar;
|
||||
enable2017Wikitext = featuresEnabled.sourcemodetoolbar,
|
||||
dtConf = require( 'ext.discussionTools.init' ).config;
|
||||
|
||||
require( './AbandonCommentDialog.js' );
|
||||
require( './AbandonTopicDialog.js' );
|
||||
|
@ -189,6 +190,7 @@ function ReplyWidget( commentController, commentDetails, config ) {
|
|||
)
|
||||
);
|
||||
}
|
||||
if ( dtConf.showFeedbackLinks ) {
|
||||
$footerLinks.append(
|
||||
$( '<li>' ).append(
|
||||
$( '<a>' )
|
||||
|
@ -202,6 +204,7 @@ function ReplyWidget( commentController, commentDetails, config ) {
|
|||
.text( mw.msg( 'discussiontools-replywidget-feedback' ) )
|
||||
)
|
||||
);
|
||||
}
|
||||
this.$footer.append(
|
||||
$( '<p>' ).addClass( 'plainlinks' ).html(
|
||||
this.isNewTopic ? licenseMessages.newtopic : licenseMessages.reply
|
||||
|
|
Loading…
Reference in a new issue