Prevent user from selecting the same category twice for different notification levels in their preferences

This commit is contained in:
Benjamin Kampmann
2014-04-09 16:32:58 +02:00
parent 6daef624c3
commit 72a6566bfd
3 changed files with 9 additions and 4 deletions
@@ -15,6 +15,10 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({
return Discourse.SiteSettings.allow_user_locale;
}.property(),
selectedCategories: function(){
return [].concat(this.get("watchedCategories"), this.get("trackedCategories"), this.get("mutedCategories"));
}.property("watchedCategories", "trackedCategories", "mutedCategories"),
// By default we haven't saved anything
saved: false,