Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
cf50a7deb3
* Apply prettier * applied prettier for similar-topics-validator Co-authored-by: Faizaan Gagan <fzngagan@gmail.com>
17 Zeilen
393 B
JavaScript
17 Zeilen
393 B
JavaScript
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;
|