DEV: Add class name of action type for flag-action-type container (#23972)

This commit is contained in:
Mark VanLandingham 2023-10-18 10:18:52 -05:00 committed by GitHub
parent 31797ebc40
commit 585bb0df27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 78 additions and 71 deletions

View File

@ -1,3 +1,4 @@
<div class={{this.wrapperClassNames}}>
{{#if this.isNotifyUser}}
<h3>{{this.formattedName}}</h3>
<div class="controls">
@ -70,3 +71,4 @@
</label>
</div>
{{/if}}
</div>

View File

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