FEATURE: allow advanced badge options in admin screen

clean up serializer, allow simplistic preview
This commit is contained in:
Sam
2014-07-24 18:28:09 +10:00
parent 469e74316b
commit ec03d135fa
14 changed files with 206 additions and 32 deletions
@@ -8,8 +8,6 @@
@module Discourse
**/
var RESERVED_BADGE_COUNT = 100;
Discourse.AdminBadgeController = Discourse.ObjectController.extend({
/**
Whether this badge has been selected.
@@ -33,5 +31,5 @@ Discourse.AdminBadgeController = Discourse.ObjectController.extend({
@property readOnly
@type {Boolean}
**/
readOnly: Ember.computed.lt('model.id', RESERVED_BADGE_COUNT)
readOnly: Ember.computed.alias('model.system')
});