mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 05:21:36 +03:00
18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
|
import Controller from '@ember/controller';
|
||
|
import {alias} from '@ember/object/computed';
|
||
|
|
||
|
export default Controller.extend({
|
||
|
integration: alias('model'),
|
||
|
|
||
|
actions: {
|
||
|
save() {
|
||
|
return this.integration.save();
|
||
|
},
|
||
|
|
||
|
cancel() {
|
||
|
// 'new' route's dectivate hook takes care of rollback
|
||
|
this.transitionToRoute('settings.integrations');
|
||
|
}
|
||
|
}
|
||
|
});
|