summaryrefslogtreecommitdiff
path: root/source/features/batch-open-issues.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/batch-open-issues.tsx')
-rw-r--r--source/features/batch-open-issues.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/batch-open-issues.tsx b/source/features/batch-open-issues.tsx
index f859720f..1f60fe86 100644
--- a/source/features/batch-open-issues.tsx
+++ b/source/features/batch-open-issues.tsx
@@ -2,6 +2,7 @@ import React from 'dom-chef';
import select from 'select-dom';
import delegate from 'delegate-it';
import features from '../libs/features';
+import * as pageDetect from '../libs/page-detect';
const confirmationRequiredCount = 10;
@@ -13,7 +14,7 @@ function getUrlFromItem(checkbox: Element): string {
}
function openIssues(): void {
- const modifier = features.isGlobalDiscussionList() ? '' : ' + div ';
+ const modifier = pageDetect.isGlobalDiscussionList() ? '' : ' + div ';
const issues = select.all([
`#js-issues-toolbar.triage-mode ${modifier} [name="issues[]"]:checked`, // Get checked checkboxes
`#js-issues-toolbar:not(.triage-mode) ${modifier} .js-issue-row` // Or all items
@@ -69,7 +70,7 @@ features.add({
screenshot: 'https://user-images.githubusercontent.com/1402241/38084752-4820b0d8-3378-11e8-868c-a1582b16f915.gif'
}, {
include: [
- features.isDiscussionList
+ pageDetect.isDiscussionList
],
init
});