Skip to content

Commit

Permalink
only show for internal issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Funk committed Jun 21, 2019
1 parent bd95f90 commit 57d2dc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/gitea/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ export default {
console.log("rendering gitea kanban")

var menuLabels = document.querySelectorAll(`.ui.tabular.stackable.menu.navbar > a`)
// console.log(menuLabels)
if (menuLabels && menuLabels.length) {
// only add kanban if issues enabled
if (menuLabels[1].innerText.indexOf("Issues") !== -1) {
if (menuLabels[1].innerText.indexOf("Issues") !== -1 && !menuLabels[1].target) {
this.addMenu(menuLabels[1])
}
}
Expand Down

0 comments on commit 57d2dc1

Please sign in to comment.