2021-03-28 11:06:49 +02:00
|
|
|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
2020-04-15 04:10:39 +02:00
|
|
|
import EmberObject from "@ember/object";
|
|
|
|
|
|
|
|
const CustomWizardLogs = EmberObject.extend();
|
|
|
|
|
|
|
|
CustomWizardLogs.reopenClass({
|
|
|
|
list(page = 0) {
|
2021-03-28 11:06:49 +02:00
|
|
|
return ajax("/admin/wizards/logs", {
|
2020-04-15 04:10:39 +02:00
|
|
|
data: {
|
2021-03-28 11:06:49 +02:00
|
|
|
page,
|
|
|
|
},
|
2020-04-15 04:10:39 +02:00
|
|
|
}).catch(popupAjaxError);
|
2021-03-28 11:06:49 +02:00
|
|
|
},
|
2020-04-15 04:10:39 +02:00
|
|
|
});
|
|
|
|
|
2021-03-28 11:06:49 +02:00
|
|
|
export default CustomWizardLogs;
|