1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/models/custom-wizard-logs.js.es6

17 Zeilen
389 B
Text

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