mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
18a433debd
Issue #2846 -Implement custom RESTAdapter and serializer for settings data. -Convert theme selector to Ember.Select. -Finish upload modal and wire into settings page.
21 lines
493 B
JavaScript
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;
|