mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-07 23:12:34 +00:00
lazHash
This commit is contained in:
parent
d4501f2928
commit
3cb3557840
@ -1,6 +1,6 @@
|
|||||||
import { tracked } from "@glimmer/tracking";
|
import { tracked } from "@glimmer/tracking";
|
||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
import { fn, hash } from "@ember/helper";
|
import { fn } from "@ember/helper";
|
||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import { getOwner } from "@ember/owner";
|
import { getOwner } from "@ember/owner";
|
||||||
@ -12,6 +12,7 @@ import $ from "jquery";
|
|||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import bodyClass from "discourse/helpers/body-class";
|
import bodyClass from "discourse/helpers/body-class";
|
||||||
|
import lazyHash from "discourse/helpers/lazy-hash";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import userAutocomplete from "discourse/lib/autocomplete/user";
|
import userAutocomplete from "discourse/lib/autocomplete/user";
|
||||||
import { setupHashtagAutocomplete } from "discourse/lib/hashtag-autocomplete";
|
import { setupHashtagAutocomplete } from "discourse/lib/hashtag-autocomplete";
|
||||||
@ -300,7 +301,7 @@ export default class AiBotConversations extends Component {
|
|||||||
</div>
|
</div>
|
||||||
<PluginOutlet
|
<PluginOutlet
|
||||||
@name="ai-bot-conversations-above-input"
|
@name="ai-bot-conversations-above-input"
|
||||||
@outletArgs={{hash
|
@outletArgs={{lazyHash
|
||||||
updateInput=this.updateInputValue
|
updateInput=this.updateInputValue
|
||||||
submit=this.prepareAndSubmitToBot
|
submit=this.prepareAndSubmitToBot
|
||||||
}}
|
}}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { hash } from "@ember/helper";
|
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
|
import lazyHash from "discourse/helpers/lazy-hash";
|
||||||
import { defaultHomepage } from "discourse/lib/utilities";
|
import { defaultHomepage } from "discourse/lib/utilities";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
import { composeAiBotMessage } from "../lib/ai-bot-helper";
|
import { composeAiBotMessage } from "../lib/ai-bot-helper";
|
||||||
@ -64,7 +64,7 @@ export default class AiBotHeaderIcon extends Component {
|
|||||||
<li>
|
<li>
|
||||||
<PluginOutlet
|
<PluginOutlet
|
||||||
@name="ai-bot-header-icon"
|
@name="ai-bot-header-icon"
|
||||||
@outletArgs={{hash onClick=this.onClick icon=this.icon}}
|
@outletArgs={{lazyHash onClick=this.onClick icon=this.icon}}
|
||||||
>
|
>
|
||||||
<DButton
|
<DButton
|
||||||
@action={{this.onClick}}
|
@action={{this.onClick}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user