Skip to content

Commit 8e9ff1a

Browse files
committed
Replace the "Save Instructions" checkbox with a switch
1 parent 0e49e92 commit 8e9ff1a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/Assistant.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,13 @@ export default defineComponent({
358358
</CoreLayer>
359359
<div v-if="!chatMessages.length || systemMessage?.text" class="flex flex-col gap-2">
360360
<div class="flex flex-col gap-2">
361-
<label v-if="!systemInstruction.id && !chatMessages.length" class="flex items-center cursor-pointer gap-2">
362-
<input v-model="isToBeSaved" type="checkbox" class="checkbox">
363-
<span>Save Instructions</span>
364-
</label>
361+
<div>
362+
<CoreSwitch
363+
v-if="!systemInstruction.id && !chatMessages.length"
364+
v-model="isToBeSaved"
365+
label="Save Instructions"
366+
/>
367+
</div>
365368
<CoreInput
366369
v-if="isToBeSaved || systemInstruction.id"
367370
v-model="systemInstruction.description"

0 commit comments

Comments
 (0)