Skip to content

Commit

Permalink
[FIX] "Discussions" item in "More" menu not hidden, when Discussions …
Browse files Browse the repository at this point in the history
…are disabled (#14684)
  • Loading branch information
ifantom authored and ggazzo committed Sep 14, 2019
1 parent 67e699d commit 477dc8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/discussion/client/tabBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Meteor } from 'meteor/meteor';

import { TabBar } from '../../ui-utils/client';
import { settings } from '../../settings';

Meteor.startup(function() {
return TabBar.addButton({
Expand All @@ -10,5 +11,6 @@ Meteor.startup(function() {
icon: 'discussion',
template: 'discussionsTabbar',
order: 10,
condition: () => settings.get('Discussion_enabled'),
});
});

0 comments on commit 477dc8a

Please sign in to comment.