discourse/app/assets/javascripts/admin/addon/routes/admin-backups-settings.js

16 lines
372 B
JavaScript

import Route from "@ember/routing/route";
import SiteSetting from "admin/models/site-setting";
export default class AdminBackupsSettingsRoute extends Route {
queryParams = {
filter: { replace: true },
};
async model(params) {
return {
settings: await SiteSetting.findAll({ categories: ["backups"] }),
initialFilter: params.filter,
};
}
}