mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-07 06:52:36 +00:00
lazHash
This commit is contained in:
parent
d4501f2928
commit
3cb3557840
@ -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
|
||||
}}
|
||||
|
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user