mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:11:25 +08:00
DEV: introduces prettier for es6 files
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
||||
import { ajax } from 'discourse/lib/ajax';
|
||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
|
||||
export default Ember.Controller.extend(ModalFunctionality, {
|
||||
loadDiff() {
|
||||
this.set('loading', true);
|
||||
ajax('/admin/logs/staff_action_logs/' + this.get('model.id') + '/diff')
|
||||
.then(diff=>{
|
||||
this.set('loading', false);
|
||||
this.set('diff', diff.side_by_side);
|
||||
});
|
||||
this.set("loading", true);
|
||||
ajax(
|
||||
"/admin/logs/staff_action_logs/" + this.get("model.id") + "/diff"
|
||||
).then(diff => {
|
||||
this.set("loading", false);
|
||||
this.set("diff", diff.side_by_side);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user