Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Preserve chat maximized state when switching between recordings
Murtaza Nasirc4b76177322a
diff --git a/static/js/app.js b/static/js/app.jsindex 9e7c9901..35cf8e25 100644--- a/static/js/app.js+++ b/static/js/app.js@@ -4810,11 +4810,6 @@ document.addEventListener('DOMContentLoaded', async () => {// Watch for tab changes to save content properlywatch(selectedTab, (newTab, oldTab) => {- // Close maximized chat when switching tabs- if (isChatMaximized.value) {- isChatMaximized.value = false;- }-// Save content when switching away from notes tab but keep editor openif (oldTab === 'notes' && editingNotes.value && markdownEditorInstance.value) {// Save the current content from the editor@@ -4912,10 +4907,15 @@ document.addEventListener('DOMContentLoaded', async () => {saveEditSummary(); // This will save and cleanupselectedRecording.value = newVal; // Switch back to new recording}-++ // Preserve chat maximized state when switching recordings+ // Don't reset chat visibility or maximized state if chat is currently maximized+ if (!isChatMaximized.value) {+ showChat.value = false;+ selectedTab.value = 'summary';+ }+ // Clear messages for the new recordingchatMessages.value = [];- showChat.value = false;- selectedTab.value = 'summary';editingParticipants.value = false;editingMeetingDate.value = false;