From ba09582d7c1635381de77c1af9894fca773c21f4 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Fri, 15 Dec 2023 15:19:04 -0800 Subject: [PATCH] UX: Hide suggest edit button in fast edit when triggering from AI (#364) --- .../ai-edit-suggestion-button.gjs | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/assets/javascripts/discourse/connectors/fast-edit-footer-after/ai-edit-suggestion-button.gjs b/assets/javascripts/discourse/connectors/fast-edit-footer-after/ai-edit-suggestion-button.gjs index e3766b2d..1531d310 100644 --- a/assets/javascripts/discourse/connectors/fast-edit-footer-after/ai-edit-suggestion-button.gjs +++ b/assets/javascripts/discourse/connectors/fast-edit-footer-after/ai-edit-suggestion-button.gjs @@ -24,11 +24,7 @@ export default class AiEditSuggestionButton extends Component { } get disabled() { - return ( - this.loading || - this.suggestion?.length > 0 || - this.args.outletArgs.newValue - ); + return this.loading || this.suggestion?.length > 0; } async loadMode() { @@ -68,13 +64,15 @@ export default class AiEditSuggestionButton extends Component { } }