mediawiki-extensions-Discus.../modules
Bartosz Dziewoński 90283b3a7e Update the [subscribe] buttons when auto-subscriptions are added
When our interface initialized on a page that the current user
recently edited (using the reply tool, the full-page source editor,
or any other way), check if any new automatic topic subscriptions
were added and update the interface to reflect that.

This requires doing some API requests after the page is loaded,
because adding auto-subscriptions happens asynchronously in a
DeferredUpdate (potentially after the user is already viewing
the page with their comment saved), and depends on the contents
of the edit.

(When using the reply tool, we could avoid this API request and
replicate the logic, but that's not implemented in this commit
to keep it simple.)

Bug: T284836
Change-Id: Ic0fabda0de4ebbc5e424f49641e6b03ebb4b7e6a
2021-11-15 22:45:42 +01:00
..
dt-ve Support reply tool on mobile 2021-11-03 17:49:06 +00:00
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json Define documentable types in eslintrc instead of inline 2021-10-17 14:38:39 +01:00
AbandonCommentDialog.js Separate dialog for abandoning a new topic 2021-01-19 21:40:21 +01:00
AbandonTopicDialog.js Separate dialog for abandoning a new topic 2021-01-19 21:40:21 +01:00
CommentController.js Support reply tool on mobile 2021-11-03 17:49:06 +00:00
CommentDetails.js Show edit notices in the new discussion tool 2021-06-22 21:40:51 +02:00
CommentItem.js Define documentable types in eslintrc instead of inline 2021-10-17 14:38:39 +01:00
controller.js Update the [subscribe] buttons when auto-subscriptions are added 2021-11-15 22:45:42 +01:00
dt.debug.js Code style: Move var declarations inline 2021-04-22 17:43:46 +00:00
dt.init.js Apply an empty-state to pages with the new topic tool enabled 2021-08-04 18:46:28 -05:00
dt.init.less Update the [subscribe] buttons when auto-subscriptions are added 2021-11-15 22:45:42 +01:00
dt.ui.NewTopicController.less Show edit notices in the new discussion tool 2021-06-22 21:40:51 +02:00
dt.ui.ReplyWidget.js Fix saving edit mode on mobile in reply tool 2021-11-04 18:19:30 +00:00
dt.ui.ReplyWidget.less Support reply tool on mobile 2021-11-03 17:49:06 +00:00
dt.ui.ReplyWidgetPlain.js Support reply tool on mobile 2021-11-03 17:49:06 +00:00
dt.ui.ReplyWidgetVisual.js Define documentable types in eslintrc instead of inline 2021-10-17 14:38:39 +01:00
HeadingItem.js Code style: Move var declarations inline 2021-04-22 17:43:46 +00:00
highlighter.js Handle window resize in debug mode 2021-11-09 13:38:48 +00:00
highlighter.less Change dt- class prefix to ext-discussiontools- 2021-03-13 14:42:39 +00:00
logger.js Logging for new comments 2021-10-28 21:50:23 +00:00
ModeTabOptionWidget.js Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
ModeTabSelectWidget.js Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
modifier.js Define documentable types in eslintrc instead of inline 2021-10-17 14:38:39 +01:00
NewTopicController.js Set a user preference to record whether the new topic tool has been used 2021-11-15 10:25:51 -06:00
Parser.js build: Update eslint-config-wikimedia to 0.21.0 2021-11-08 19:03:40 +00:00
ReplyLinksController.js ReplyLinksController: Update teardown code 2021-11-05 20:21:22 +01:00
ThreadItem.js Define documentable types in eslintrc instead of inline 2021-10-17 14:38:39 +01:00
utils.js Avoid splitting about-groups starting with an empty <span> 2021-11-15 16:03:38 +00:00