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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
500 B
JavaScript
Raw Normal View History

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,
};
}
}