2024-08-30 12:53:36 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2024-11-20 04:45:18 +08:00
|
|
|
import { i18n } from "discourse-i18n";
|
2024-08-20 07:59:43 +08:00
|
|
|
import SiteSetting from "admin/models/site-setting";
|
|
|
|
|
2024-08-30 12:53:36 +08:00
|
|
|
export default class AdminBackupsSettingsRoute extends DiscourseRoute {
|
2024-08-20 07:59:43 +08:00
|
|
|
queryParams = {
|
|
|
|
filter: { replace: true },
|
|
|
|
};
|
|
|
|
|
2024-08-30 12:53:36 +08:00
|
|
|
titleToken() {
|
2024-11-20 04:45:18 +08:00
|
|
|
return i18n("admin.backups.settings");
|
2024-08-30 12:53:36 +08:00
|
|
|
}
|
|
|
|
|
2024-08-20 07:59:43 +08:00
|
|
|
async model(params) {
|
|
|
|
return {
|
|
|
|
settings: await SiteSetting.findAll({ categories: ["backups"] }),
|
|
|
|
initialFilter: params.filter,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|