mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
UX: Easily toggle badges in admin badge list (#20225)
This commit is contained in:
@ -217,6 +217,8 @@ export function createData(store) {
|
||||
{ disabled: true, text: "disabled" },
|
||||
],
|
||||
|
||||
toggleSwitchState: true,
|
||||
|
||||
navItems: ["latest", "categories", "top"].map((name) => {
|
||||
let item = NavItem.fromText(name);
|
||||
|
||||
|
@ -152,4 +152,14 @@
|
||||
@translatedLabel={{bs.text}}
|
||||
/>
|
||||
{{/each}}
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="DToggleSwitch">
|
||||
<DToggleSwitch
|
||||
@state={{this.dummy.toggleSwitchState}}
|
||||
{{on
|
||||
"click"
|
||||
(fn (mut this.dummy.toggleSwitchState) (not this.dummy.toggleSwitchState))
|
||||
}}
|
||||
/>
|
||||
</StyleguideExample>
|
Reference in New Issue
Block a user