Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-14 05:52:52 +01:00
17 Zeilen
389 B
Text
17 Zeilen
389 B
Text
|
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;
|