0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 10:40:28 +01:00
discourse-custom-wizard/assets/javascripts/discourse/models/custom-wizard-logs.js.es6

18 Zeilen
393 B
Text

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) {
return ajax("/admin/wizards/logs", {
2020-04-15 04:10:39 +02:00
data: {
page,
},
2020-04-15 04:10:39 +02:00
}).catch(popupAjaxError);
},
2020-04-15 04:10:39 +02:00
});
export default CustomWizardLogs;