Constructor
new GlobalWatchlistMultiSiteWrapper(SiteClass, config, globalWatchlistDebug)
#
Shared helper for Special:GlobalWatchlist
Parameters:
Name | Type | Description |
---|---|---|
SiteClass |
function |
|
config |
Object | User configuration to use |
globalWatchlistDebug |
GlobalWatchlistDebugger | Shared debugger instance |
- Source:
Properties
confirmMarkAllSitesSeen
#
Properties:
Name | Type | Description |
---|---|---|
whether |
boolean | to ask the user to confirm their decision when marking all sites as seen |
- Source:
siteList
#
Properties:
Name | Type | Description |
---|---|---|
siteList |
The individual sites |
- Source:
Methods
getAllWatchlists(config) → {Promise}
#
Promise that all of the sites have retrieved their watchlists
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | User configuration to use. Needs to be passed rather than using the configuration we got in the constructor because some parts of it can change (specifically whether to group results by page, and the timestamp of the start of the call that is used when marking sites as seen). |
- Source:
Returns:
Promise that all watchlists were retrieved
- Type
- Promise