mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
034812ac02
refs https://github.com/TryGhost/Ghost/issues/14101 - `@classic` decorator is not required on adapter classes - small cleanup of Octane migration code
13 lines
355 B
JavaScript
13 lines
355 B
JavaScript
import ApplicationAdapter from './application';
|
|
|
|
export default class Theme extends ApplicationAdapter {
|
|
activate(model) {
|
|
let url = `${this.buildURL('theme', model.get('id'))}activate/`;
|
|
|
|
return this.ajax(url, 'PUT', {data: {}}).then((data) => {
|
|
this.store.pushPayload(data);
|
|
return model;
|
|
});
|
|
}
|
|
}
|