discourse/app/assets/javascripts/admin/addon/routes/admin-badges/index.js
Ella E. be5c37a6d4
UX: Apply admin UI to Badges (#28724)
* UX: Add a description about badges

* WIP: Apply admin UI guidelines

* FIX: Add routeModels to dbutton

Allows routeModels to be passed to a DButton along
with route, so we can use them as a LinkTo replacement
in more places.

Also fix up badges admin page header.

* UX: Reorder action buttons

* UX: Change header hierarchy to better align page's content structure

* UX: Update copy and remove unnecessary UI elements

* UX: Adjust header's icon spacing

* UX: Fix the header action buttons on mobile

* Apply prettier

---------

Co-authored-by: Martin Brennan <martin@discourse.org>
2024-09-04 20:18:23 -06:00

9 lines
256 B
JavaScript

import Route from "@ember/routing/route";
import { emojiUrlFor } from "discourse/lib/text";
export default class AdminBadgesIndexRoute extends Route {
setupController(controller) {
controller.badgeIntroEmoji = emojiUrlFor("woman_student:t4");
}
}