Skip to content

Commit 3cb3557

Browse files
committed
lazHash
1 parent d4501f2 commit 3cb3557

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

assets/javascripts/discourse/components/ai-bot-conversations.gjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { tracked } from "@glimmer/tracking";
22
import Component from "@ember/component";
3-
import { fn, hash } from "@ember/helper";
3+
import { fn } from "@ember/helper";
44
import { on } from "@ember/modifier";
55
import { action } from "@ember/object";
66
import { getOwner } from "@ember/owner";
@@ -12,6 +12,7 @@ import $ from "jquery";
1212
import DButton from "discourse/components/d-button";
1313
import PluginOutlet from "discourse/components/plugin-outlet";
1414
import bodyClass from "discourse/helpers/body-class";
15+
import lazyHash from "discourse/helpers/lazy-hash";
1516
import { popupAjaxError } from "discourse/lib/ajax-error";
1617
import userAutocomplete from "discourse/lib/autocomplete/user";
1718
import { setupHashtagAutocomplete } from "discourse/lib/hashtag-autocomplete";
@@ -300,7 +301,7 @@ export default class AiBotConversations extends Component {
300301
</div>
301302
<PluginOutlet
302303
@name="ai-bot-conversations-above-input"
303-
@outletArgs={{hash
304+
@outletArgs={{lazyHash
304305
updateInput=this.updateInputValue
305306
submit=this.prepareAndSubmitToBot
306307
}}

assets/javascripts/discourse/components/ai-bot-header-icon.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Component from "@glimmer/component";
2-
import { hash } from "@ember/helper";
32
import { action } from "@ember/object";
43
import { service } from "@ember/service";
54
import DButton from "discourse/components/d-button";
65
import PluginOutlet from "discourse/components/plugin-outlet";
6+
import lazyHash from "discourse/helpers/lazy-hash";
77
import { defaultHomepage } from "discourse/lib/utilities";
88
import { i18n } from "discourse-i18n";
99
import { composeAiBotMessage } from "../lib/ai-bot-helper";
@@ -64,7 +64,7 @@ export default class AiBotHeaderIcon extends Component {
6464
<li>
6565
<PluginOutlet
6666
@name="ai-bot-header-icon"
67-
@outletArgs={{hash onClick=this.onClick icon=this.icon}}
67+
@outletArgs={{lazyHash onClick=this.onClick icon=this.icon}}
6868
>
6969
<DButton
7070
@action={{this.onClick}}

0 commit comments

Comments
 (0)