Skip to content

Commit

Permalink
Fix being unable to save settings from dialog on watchlist page
Browse files Browse the repository at this point in the history
Change-Id: I445d27f3af73966c1ed78106c108a1ef1384a915
  • Loading branch information
jwbth committed Oct 3, 2021
1 parent 9d9a1ea commit dce975f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/js/addCommentLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
import Comment from './Comment';
import Page from './Page';
import cd from './cd';
import {
generatePageNamePattern,
isCommentEdit,
isProbablyTalkPage,
isUndo,
removeDirMarks,
spacesToUnderlines,
} from './util';
import userRegistry from './userRegistry';
import { createApi, initSettings } from './boot';
import { editWatchedSections, showSettingsDialog } from './modal';
import {
Expand All @@ -23,6 +16,14 @@ import {
initTimestampParsingTools,
parseTimestamp,
} from './timestamp';
import {
generatePageNamePattern,
isCommentEdit,
isProbablyTalkPage,
isUndo,
removeDirMarks,
spacesToUnderlines,
} from './util';
import { getWatchedSections } from './options';
import { loadSiteData } from './siteData';

Expand Down Expand Up @@ -72,6 +73,7 @@ async function prepare(siteDataRequests) {
.files['phpCharToUpper.json'];

cd.page = new Page(cd.g.PAGE_NAME, false);
cd.user = userRegistry.getUser(cd.g.USER_NAME);

serverName = mw.config.get('wgServerName');
colon = cd.mws('colon-separator', { language: 'content' }).trim();
Expand Down

0 comments on commit dce975f

Please sign in to comment.