This commit is contained in:
Jarek Radosz 2025-06-20 23:56:20 +02:00
parent d4501f2928
commit 3cb3557840
No known key found for this signature in database
GPG Key ID: 98C198E7019429B3
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { tracked } from "@glimmer/tracking";
import Component from "@ember/component";
import { fn, hash } from "@ember/helper";
import { fn } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import { getOwner } from "@ember/owner";
@ -12,6 +12,7 @@ import $ from "jquery";
import DButton from "discourse/components/d-button";
import PluginOutlet from "discourse/components/plugin-outlet";
import bodyClass from "discourse/helpers/body-class";
import lazyHash from "discourse/helpers/lazy-hash";
import { popupAjaxError } from "discourse/lib/ajax-error";
import userAutocomplete from "discourse/lib/autocomplete/user";
import { setupHashtagAutocomplete } from "discourse/lib/hashtag-autocomplete";
@ -300,7 +301,7 @@ export default class AiBotConversations extends Component {
</div>
<PluginOutlet
@name="ai-bot-conversations-above-input"
@outletArgs={{hash
@outletArgs={{lazyHash
updateInput=this.updateInputValue
submit=this.prepareAndSubmitToBot
}}

View File

@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { hash } from "@ember/helper";
import { action } from "@ember/object";
import { service } from "@ember/service";
import DButton from "discourse/components/d-button";
import PluginOutlet from "discourse/components/plugin-outlet";
import lazyHash from "discourse/helpers/lazy-hash";
import { defaultHomepage } from "discourse/lib/utilities";
import { i18n } from "discourse-i18n";
import { composeAiBotMessage } from "../lib/ai-bot-helper";
@ -64,7 +64,7 @@ export default class AiBotHeaderIcon extends Component {
<li>
<PluginOutlet
@name="ai-bot-header-icon"
@outletArgs={{hash onClick=this.onClick icon=this.icon}}
@outletArgs={{lazyHash onClick=this.onClick icon=this.icon}}
>
<DButton
@action={{this.onClick}}