Skip to content

Commit

Permalink
fix: enable submit button without scope (#128)
Browse files Browse the repository at this point in the history
* fix(contextchat): open referenced sources in new tab
* fix(contextchat): enable submit button without scope

---------

Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Sep 19, 2024
1 parent b561be8 commit b450517
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/components/ContextChat/ContextChatInputForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,13 @@ export default {
// initialize the inputs if necessary
if (Object.keys(this.inputs).length === 0) {
this.$emit('update:inputs', {
prompt: '',
scopeType: _ScopeType.NONE,
scopeList: [],
scopeListMeta: '[]',
this.$nextTick(() => {
this.$emit('update:inputs', {
prompt: '',
scopeType: _ScopeType.NONE,
scopeList: [],
scopeListMeta: '[]',
})
})
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/ContextChat/ContextChatOutputForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:append-to-body="false"
:dropdown-should-open="() => false">
<template #option="option">
<a class="select-option" :href="option.url">
<a class="select-option" :href="option.url" target="_blank">
<NcAvatar
:size="24"
:url="option.icon"
Expand All @@ -32,7 +32,7 @@
</a>
</template>
<template #selected-option="option">
<a class="select-option" :href="option.url">
<a class="select-option" :href="option.url" target="_blank">
<NcAvatar
:size="24"
:url="option.icon"
Expand Down

0 comments on commit b450517

Please sign in to comment.