DEV: Temporarily hide form when editing topic with template (#22099)
This commit is contained in:
parent
8b39125985
commit
cd6183de93
|
@ -18,6 +18,7 @@
|
|||
@popupMenuOptions={{this.popupMenuOptions}}
|
||||
@formTemplateIds={{this.formTemplateIds}}
|
||||
@replyingToTopic={{this.composer.replyingToTopic}}
|
||||
@editingPost={{this.composer.editingPost}}
|
||||
@disabled={{this.disableTextarea}}
|
||||
@outletArgs={{hash composer=this.composer editorType="composer"}}
|
||||
>
|
||||
|
|
|
@ -247,9 +247,10 @@ export default Component.extend(TextareaTextManipulation, {
|
|||
this.selectedFormTemplateId = formTemplateId;
|
||||
},
|
||||
|
||||
@discourseComputed("formTemplateIds", "replyingToTopic")
|
||||
showFormTemplateForm(formTemplateIds, replyingToTopic) {
|
||||
if (formTemplateIds?.length > 0 && !replyingToTopic) {
|
||||
@discourseComputed("formTemplateIds", "replyingToTopic", "editingPost")
|
||||
showFormTemplateForm(formTemplateIds, replyingToTopic, editingPost) {
|
||||
// TODO(@keegan): Remove !editingPost once we add edit/draft support for form templates
|
||||
if (formTemplateIds?.length > 0 && !replyingToTopic && !editingPost) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue