File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
assets/javascripts/discourse/components Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { tracked } from " @glimmer/tracking" ;
2
2
import Component from " @ember/component" ;
3
- import { fn , hash } from " @ember/helper" ;
3
+ import { fn } from " @ember/helper" ;
4
4
import { on } from " @ember/modifier" ;
5
5
import { action } from " @ember/object" ;
6
6
import { getOwner } from " @ember/owner" ;
@@ -12,6 +12,7 @@ import $ from "jquery";
12
12
import DButton from " discourse/components/d-button" ;
13
13
import PluginOutlet from " discourse/components/plugin-outlet" ;
14
14
import bodyClass from " discourse/helpers/body-class" ;
15
+ import lazyHash from " discourse/helpers/lazy-hash" ;
15
16
import { popupAjaxError } from " discourse/lib/ajax-error" ;
16
17
import userAutocomplete from " discourse/lib/autocomplete/user" ;
17
18
import { setupHashtagAutocomplete } from " discourse/lib/hashtag-autocomplete" ;
@@ -300,7 +301,7 @@ export default class AiBotConversations extends Component {
300
301
</div >
301
302
<PluginOutlet
302
303
@ name =" ai-bot-conversations-above-input"
303
- @ outletArgs ={{hash
304
+ @ outletArgs ={{lazyHash
304
305
updateInput =this . updateInputValue
305
306
submit =this . prepareAndSubmitToBot
306
307
}}
Original file line number Diff line number Diff line change 1
1
import Component from " @glimmer/component" ;
2
- import { hash } from " @ember/helper" ;
3
2
import { action } from " @ember/object" ;
4
3
import { service } from " @ember/service" ;
5
4
import DButton from " discourse/components/d-button" ;
6
5
import PluginOutlet from " discourse/components/plugin-outlet" ;
6
+ import lazyHash from " discourse/helpers/lazy-hash" ;
7
7
import { defaultHomepage } from " discourse/lib/utilities" ;
8
8
import { i18n } from " discourse-i18n" ;
9
9
import { composeAiBotMessage } from " ../lib/ai-bot-helper" ;
@@ -64,7 +64,7 @@ export default class AiBotHeaderIcon extends Component {
64
64
<li >
65
65
<PluginOutlet
66
66
@ name =" ai-bot-header-icon"
67
- @ outletArgs ={{hash onClick =this . onClick icon =this . icon}}
67
+ @ outletArgs ={{lazyHash onClick =this . onClick icon =this . icon}}
68
68
>
69
69
<DButton
70
70
@ action ={{this .onClick }}
You can’t perform that action at this time.
0 commit comments