|
@@ -34,6 +34,7 @@
|
|
|
|
|
|
let showEmojiInCall = false;
|
|
|
let voiceInterruption = false;
|
|
|
+ let hapticFeedback = false;
|
|
|
|
|
|
const toggleSplitLargeChunks = async () => {
|
|
|
splitLargeChunks = !splitLargeChunks;
|
|
@@ -70,6 +71,11 @@
|
|
|
saveSettings({ voiceInterruption: voiceInterruption });
|
|
|
};
|
|
|
|
|
|
+ const toggleHapticFeedback = async () => {
|
|
|
+ hapticFeedback = !hapticFeedback;
|
|
|
+ saveSettings({ hapticFeedback: hapticFeedback });
|
|
|
+ };
|
|
|
+
|
|
|
const toggleUserLocation = async () => {
|
|
|
userLocation = !userLocation;
|
|
|
|
|
@@ -151,6 +157,8 @@
|
|
|
chatDirection = $settings.chatDirection ?? 'LTR';
|
|
|
userLocation = $settings.userLocation ?? false;
|
|
|
|
|
|
+ hapticFeedback = $settings.hapticFeedback ?? false;
|
|
|
+
|
|
|
defaultModelId = $settings?.models?.at(0) ?? '';
|
|
|
if ($config?.default_models) {
|
|
|
defaultModelId = $config.default_models.split(',')[0];
|
|
@@ -438,6 +446,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div>
|
|
|
+ <div class=" py-0.5 flex w-full justify-between">
|
|
|
+ <div class=" self-center text-xs">{$i18n.t('Haptic Feedback')}</div>
|
|
|
+
|
|
|
+ <button
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ on:click={() => {
|
|
|
+ toggleHapticFeedback();
|
|
|
+ }}
|
|
|
+ type="button"
|
|
|
+ >
|
|
|
+ {#if hapticFeedback === true}
|
|
|
+ <span class="ml-2 self-center">{$i18n.t('On')}</span>
|
|
|
+ {:else}
|
|
|
+ <span class="ml-2 self-center">{$i18n.t('Off')}</span>
|
|
|
+ {/if}
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class=" my-1.5 text-sm font-medium">{$i18n.t('Voice')}</div>
|
|
|
|
|
|
<div>
|