decide.nolog.cz/app/controllers/error.js
jelhan 398453c1e4 do encryption / decryption in serializer
before it was done as computed properties of model

accessing encryption key in serializer is done via global application var.
this should be removed in long-term
2015-08-19 22:00:01 +02:00

7 lines
194 B
JavaScript

import Ember from "ember";
export default Ember.Controller.extend({
isDecryptionError: function(){
return this.get('model.type') === 'decryption-failed';
}.property('model.type')
});