UX: Easily toggle badges in admin badge list (#20225)

This commit is contained in:
Keegan George
2023-02-09 11:36:27 -08:00
committed by GitHub
parent 58123e8089
commit 6338287e89
11 changed files with 222 additions and 10 deletions

View File

@ -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);

View File

@ -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>