mirror of
https://github.com/discourse/discourse.git
synced 2024-12-20 14:24:15 +08:00
32665cf9dd
Enables our new eslint rules which enforce consistent i18n imports. For more info, see 0d58b40cd7
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import { i18n } from "discourse-i18n";
|
|
import SiteSetting from "admin/models/site-setting";
|
|
|
|
export default class AdminBackupsSettingsRoute extends DiscourseRoute {
|
|
queryParams = {
|
|
filter: { replace: true },
|
|
};
|
|
|
|
titleToken() {
|
|
return i18n("admin.backups.settings");
|
|
}
|
|
|
|
async model(params) {
|
|
return {
|
|
settings: await SiteSetting.findAll({ categories: ["backups"] }),
|
|
initialFilter: params.filter,
|
|
};
|
|
}
|
|
}
|