Skip to content

Commit bfd14ef

Browse files
Merge pull request #523 from appwrite/small-console-fixes
Small assistant fixes
2 parents 2034c5d + ea8b9ca commit bfd14ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/commandCenter/panels/ai.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
}
2020
});
2121
22+
let question = $input;
23+
2224
const examples = [
2325
'How to add platform in the console?',
2426
'How can I manage users, permissions, and access control in Appwrite?',
@@ -140,7 +142,7 @@
140142
<div class="content">
141143
<div class="u-flex u-gap-8 u-cross-center">
142144
<div class="avatar is-size-x-small">{getInitials($user.name)}</div>
143-
<p class="u-opacity-75">{$input}</p>
145+
<p class="u-opacity-75">{question}</p>
144146
</div>
145147
<div class="u-flex u-gap-8 u-margin-block-start-24">
146148
<div class="logo">
@@ -193,7 +195,10 @@
193195
<form
194196
class="input-text-wrapper u-width-full-line"
195197
style="--amount-of-buttons: 1;"
196-
on:submit|preventDefault={handleSubmit}>
198+
on:submit|preventDefault={(e) => {
199+
question = $input;
200+
handleSubmit(e);
201+
}}>
197202
<!-- svelte-ignore a11y-autofocus -->
198203
<input
199204
type="text"

0 commit comments

Comments
 (0)