2017-03-03 18:31:42 +03:00
|
|
|
import ApplicationAdapter from './application';
|
|
|
|
|
2022-02-02 19:57:22 +03:00
|
|
|
export default class Theme extends ApplicationAdapter {
|
2017-03-03 18:31:42 +03:00
|
|
|
activate(model) {
|
|
|
|
let url = `${this.buildURL('theme', model.get('id'))}activate/`;
|
|
|
|
|
|
|
|
return this.ajax(url, 'PUT', {data: {}}).then((data) => {
|
2017-03-14 16:54:58 +03:00
|
|
|
this.store.pushPayload(data);
|
|
|
|
return model;
|
2017-03-03 18:31:42 +03:00
|
|
|
});
|
|
|
|
}
|
2022-02-02 19:57:22 +03:00
|
|
|
}
|