discourse/app/assets/javascripts/admin/addon/routes/admin-badges/index.js
Ted Johansson e8997b6202
DEV: Add Settings tab to admin Badges page (#32251)
This change does two things:

Modernizes the admin badges UI implementation. (Routes + controllers → components + services.)
Adds a Settings tab to the new badges page.
For all intents and purposes, this change is a lift-and-shift modernization. The addition of the settings tab is trivial once that is covered.
2025-04-21 09:41:29 +08:00

10 lines
235 B
JavaScript
Vendored

import Route from "@ember/routing/route";
import { service } from "@ember/service";
export default class AdminBadgesIndexRoute extends Route {
@service adminBadges;
async model() {
await this.adminBadges.fetchBadges();
}
}