46
46
</div >
47
47
<div
48
48
class =" flex items-center justify-center"
49
- v-else-if =" buttonText === approveNextWorldValue "
49
+ v-else-if =" buttonText === approveNextWordValue "
50
50
>
51
51
<IconArrowRightThin class =" mt-0.5 w-5 h-5 text-white" />
52
52
<span class =" ml-1 px-1 h-4 flex items-center justify-center rounded border bg-white text-black text-[10px] font-mono shadow-inner shadow-sm border-gray-300 dark:bg-gray-700 dark:text-white dark:border-gray-500" >
@@ -86,7 +86,7 @@ const emit = defineEmits([
86
86
' update:value' ,
87
87
]);
88
88
const approveCompletionValue: string = ' TAB' ;
89
- const approveNextWorldValue : string = ' CTRL + ->'
89
+ const approveNextWordValue : string = ' CTRL + ->'
90
90
const isLoading = ref <boolean >(false );
91
91
const isUntouched = ref <boolean >(true );
92
92
const isFocused = ref <boolean >(false );
@@ -100,8 +100,8 @@ const tooltipText = computed(() =>
100
100
101
101
function handleCompletionApproved(type : ' all' | ' word' ) {
102
102
if (buttonText .value === approveCompletionValue && type === ' all' ) {
103
- buttonText .value = approveNextWorldValue ;
104
- } else if (buttonText .value === approveNextWorldValue && type === ' word' ) {
103
+ buttonText .value = approveNextWordValue ;
104
+ } else if (buttonText .value === approveNextWordValue && type === ' word' ) {
105
105
buttonText .value = approveCompletionValue ;
106
106
}
107
107
}
@@ -157,7 +157,7 @@ const approveCompletion = async () => {
157
157
await suggestionInputRef .value .approveCompletion (' word' );
158
158
}
159
159
}
160
- buttonText .value === approveCompletionValue ? buttonText .value = approveNextWorldValue : buttonText .value = approveCompletionValue ;
160
+ buttonText .value === approveCompletionValue ? buttonText .value = approveNextWordValue : buttonText .value = approveCompletionValue ;
161
161
}
162
162
163
163
function handleFocus() {
0 commit comments