Ghost/ghost/admin/controllers/modals/upload.js
Jason Williams 18a433debd Convert general settings page to ember data
Issue #2846
-Implement custom RESTAdapter and serializer for settings data.
-Convert theme selector to Ember.Select.
-Finish upload modal and wire into settings page.
2014-06-20 04:38:41 +00:00

21 lines
493 B
JavaScript

var UploadController = Ember.Controller.extend({
acceptEncoding: 'image/*',
actions: {
confirmAccept: function () {
var self = this;
this.get('model').save().then(function (model) {
self.notifications.showSuccess('Saved');
return model;
}).catch(this.notifications.showErrors);
},
confirmReject: function () {
return false;
}
}
});
export default UploadController;