mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 16:06:12 +08:00
Prior to this change, creating a new theme or theme component was causing the user to stay on the index route.
28 lines
736 B
Text
Vendored
28 lines
736 B
Text
Vendored
import Component from "@glimmer/component";
|
|
import RadioButton from "discourse/components/radio-button";
|
|
import icon from "discourse/helpers/d-icon";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class InstallThemeItem extends Component {
|
|
get classes() {
|
|
return `install-theme-item install-theme-item__${this.args.value}`;
|
|
}
|
|
|
|
<template>
|
|
<div class={{this.classes}}>
|
|
<RadioButton
|
|
@name="install-items"
|
|
@id={{@value}}
|
|
@value={{@value}}
|
|
@selection={{@selection}}
|
|
/>
|
|
<label class="radio" for={{@value}}>
|
|
{{#if @showIcon}}
|
|
{{icon "plus"}}
|
|
{{/if}}
|
|
{{i18n @label}}
|
|
</label>
|
|
{{icon "caret-right"}}
|
|
</div>
|
|
</template>
|
|
}
|