Skip to content

Commit 80181b0

Browse files
committed
Server connection UX improvements
1 parent e58cddd commit 80181b0

File tree

3 files changed

+339
-152
lines changed

3 files changed

+339
-152
lines changed

.idea/DigiScript-2.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,13 @@ export default {
298298
await window.electronAPI.clearActiveConnection();
299299
300300
// Navigate to ServerSelector and reload to clean up state
301-
window.location.hash = '/electron/server-selector';
301+
// In history mode (dev), use router to navigate before reload
302+
// In hash mode (prod), set hash before reload
303+
if (this.$router.mode === 'history') {
304+
await this.$router.push('/electron/server-selector');
305+
} else {
306+
window.location.hash = '/electron/server-selector';
307+
}
302308
window.location.reload();
303309
}
304310
},

0 commit comments

Comments
 (0)