mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:57:32 +08:00
UX: Add link to Groups in admin dashboard. (#6480)
* UX: Add link to Groups in admin dashboard. * UX: Site settings have immediate effect.
This commit is contained in:
@ -3,9 +3,14 @@ import computed from "ember-addons/ember-computed-decorators";
|
||||
export default Ember.Controller.extend({
|
||||
application: Ember.inject.controller(),
|
||||
|
||||
@computed
|
||||
showBadges() {
|
||||
return this.currentUser.get("admin") && this.siteSettings.enable_badges;
|
||||
@computed("siteSettings.enable_group_directory")
|
||||
showGroups(enableGroupDirectory) {
|
||||
return !enableGroupDirectory;
|
||||
},
|
||||
|
||||
@computed("siteSettings.enable_badges")
|
||||
showBadges(enableBadges) {
|
||||
return this.currentUser.get("admin") && enableBadges;
|
||||
},
|
||||
|
||||
@computed("application.currentPath")
|
||||
|
Reference in New Issue
Block a user