mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
23 lines
573 B
JavaScript
23 lines
573 B
JavaScript
import Ember from 'ember';
|
|
|
|
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(function (err) {
|
|
self.notifications.showErrors(err);
|
|
});
|
|
},
|
|
|
|
confirmReject: function () {
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
|
|
export default UploadController;
|