mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add class name of action type for flag-action-type container (#23972)
This commit is contained in:
parent
31797ebc40
commit
585bb0df27
@ -1,4 +1,5 @@
|
||||
{{#if this.isNotifyUser}}
|
||||
<div class={{this.wrapperClassNames}}>
|
||||
{{#if this.isNotifyUser}}
|
||||
<h3>{{this.formattedName}}</h3>
|
||||
<div class="controls">
|
||||
<label class="radio">
|
||||
@ -35,7 +36,7 @@
|
||||
<hr />
|
||||
<h3>{{i18n "flagging.notify_staff"}}</h3>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{else}}
|
||||
<div class="controls {{this.flag.name_key}}">
|
||||
<label class="radio">
|
||||
<input
|
||||
@ -69,4 +70,5 @@
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
@ -5,7 +5,12 @@ import discourseComputed from "discourse-common/utils/decorators";
|
||||
import I18n from "discourse-i18n";
|
||||
|
||||
export default Component.extend({
|
||||
classNames: ["flag-action-type"],
|
||||
tagName: "",
|
||||
|
||||
@discourseComputed("flag.name_key")
|
||||
wrapperClassNames(nameKey) {
|
||||
return `flag-action-type ${nameKey}`;
|
||||
},
|
||||
|
||||
@discourseComputed("flag.name_key")
|
||||
customPlaceholder(nameKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user