0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fix active theme selector. Add validation to API.

Closes #3226
- Remove dependent property from the computed content property
  that is used to build the active theme selector.
- Add validation to the Settings model so that it rejects
  attempts to set an activeTheme that is not installed.
This commit is contained in:
Jason Williams 2014-07-09 22:11:04 +00:00
parent e5e5cf1310
commit a0dc639a38

View file

@ -24,7 +24,7 @@ var SettingsGeneralController = Ember.ObjectController.extend({
return themes;
}, []);
}.property('availableThemes').readOnly(),
}.property().readOnly(),
actions: {
save: function () {