summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readme.md2
-rw-r--r--source/background.ts3
-rw-r--r--source/content.ts3
-rw-r--r--source/features/milestone-navigation.tsx26
4 files changed, 4 insertions, 30 deletions
diff --git a/readme.md b/readme.md
index fe34d3b9..06069689 100644
--- a/readme.md
+++ b/readme.md
@@ -171,7 +171,6 @@ And [many more…](source/content.css)
- [Access a repository's releases using the `Releases` tab or by pressing <kbd>g</kbd> <kbd>r</kbd>.](https://cloud.githubusercontent.com/assets/170270/13136797/16d3f0ea-d64f-11e5-8a45-d771c903038f.png)
- Create a new release on the Releases tab by pressing <kbd>c</kbd>.
- [Compare a repository's branches with the `Compare` link under `More`.](https://user-images.githubusercontent.com/170270/27501134-cf0a2a18-586b-11e7-8430-22f33030e923.png)
-- [Access the `Labels` `Milestones` navigation from individual milestone pages.](https://cloud.githubusercontent.com/assets/170270/25217211/37b67aea-25d0-11e7-8482-bead2b04ee74.png)
- [Search for issues and PRs with the `Everything commented by you` filter.](https://user-images.githubusercontent.com/170270/27501170-f394a304-586b-11e7-92d8-d92d6922356b.png)
- [See just the issues and PRs _on your repos_ or _commented on by you_ in the global `Issues`/`Pull Requests` pages.](https://user-images.githubusercontent.com/8295888/36827126-8bfc79c4-1d37-11e8-8754-992968b082be.png)
- Access trending repositories using the `Trending` link in the global navbar or by pressing <kbd>g</kbd> <kbd>t</kbd>.
@@ -202,6 +201,7 @@ And [many more…](source/content.css)
- [Implemented by GitHub](https://blog.github.com/changelog/2018-11-05-related-issues/): [Avoid opening duplicate issues thanks to the list of possibly-related issues.](https://user-images.githubusercontent.com/29176678/37566899-85953e6e-2abf-11e8-9f0e-52d18c87bbe3.gif)
- [Implemented by GitHub](https://blog.github.com/changelog/2018-11-16-copy-file-paths-in-diffs/): [Copy the path of a PR file.](https://cloud.githubusercontent.com/assets/4201088/26023064/18c9c77c-37d2-11e7-8926-b0a05a2706ae.png)
- [Implemented by GitHub](https://blog.github.com/changelog/2018-11-26-searching-by-user-from-a-profile-page/): [Search a user profile page when visiting it.](https://user-images.githubusercontent.com/1402241/35185441-24ad4b1e-fe37-11e7-9e1b-0dc09fc1ada2.png)
+- [Implemented by GitHub](https://user-images.githubusercontent.com/36004334/52573199-ea365480-2e19-11e9-8ebf-3ea6a7a640f8.png): [Access the `Labels` `Milestones` navigation from individual milestone pages.](https://cloud.githubusercontent.com/assets/170270/25217211/37b67aea-25d0-11e7-8482-bead2b04ee74.png)
## Customization
diff --git a/source/background.ts b/source/background.ts
index 1ee1b9f7..2c60afee 100644
--- a/source/background.ts
+++ b/source/background.ts
@@ -19,7 +19,8 @@ new OptionsSync().define({
.replace('copy-file-path', '') // #1628
.replace('bypass-checks-travis', 'bypass-checks') // #1693
.replace(/^add-(.+)-to-(profile|comments|comment-fields|emojis)$/, '$2-$1') // #1719
- .replace(/^add-/, ''); // #1719
+ .replace(/^add-/, '') // #1719
+ .replace('milestone-navigation', ''); // #1767
},
OptionsSync.migrations.removeUnused
]
diff --git a/source/content.ts b/source/content.ts
index 49df73c3..ae3530b1 100644
--- a/source/content.ts
+++ b/source/content.ts
@@ -43,8 +43,7 @@ import './features/hide-readme-header';
import './features/branch-buttons';
import './features/diff-view-without-whitespace-option';
import './features/ci-link';
-import './features/milestone-navigation';
-import './features/sort-milestones-by-closest-due-date'; // Needs to be after add-milestone-navigation
+import './features/sort-milestones-by-closest-due-date';
import './features/star-repo-hotkey';
import './features/toggle-files-button';
import './features/scroll-to-top-on-collapse';
diff --git a/source/features/milestone-navigation.tsx b/source/features/milestone-navigation.tsx
deleted file mode 100644
index a42e57ea..00000000
--- a/source/features/milestone-navigation.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import {React} from 'dom-chef/react';
-import select from 'select-dom';
-import features from '../libs/features';
-import {getRepoURL} from '../libs/utils';
-
-const repoUrl = getRepoURL();
-
-function init() {
- select('.repository-content').before(
- <div class="subnav">
- <div class="subnav-links float-left" role="navigation">
- <a href={`/${repoUrl}/labels`} class="subnav-item">Labels</a>
- <a href={`/${repoUrl}/milestones`} class="subnav-item">Milestones</a>
- </div>
- </div>
- );
-}
-
-features.add({
- id: 'milestone-navigation',
- include: [
- features.isMilestone
- ],
- load: features.onAjaxedPages,
- init
-});