add indicator when disconnected = shortcut to connection modal

This commit is contained in:
marlon-erler
2026-04-01 08:38:40 +00:00
parent 9d400a9929
commit fd8aafed6d
6 changed files with 51 additions and 6 deletions
+13
View File
@@ -49,6 +49,19 @@ export function ChatPage(chatViewModel: ChatViewModel) {
>
<span class="icon">close</span>
</button>
<button
class="danger"
aria-label={translations.general.restoreConnection}
on:click={
chatViewModel.connectionViewModel
.showConnectionModal
}
toggle:hidden={
chatViewModel.connectionViewModel.isConnected
}
>
<span class="icon">signal_disconnected</span>
</button>
<span>
{ChatViewToggleButton(
+6
View File
@@ -21,6 +21,8 @@ const englishTranslations = {
fileVersionLabel: "Version",
searchLabel: "Search",
restoreConnection: "Restore connection",
},
regional: {
@@ -295,6 +297,8 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
fileVersionLabel: "Version",
searchLabel: "Suche",
restoreConnection: "Verbindung wiederherstellen",
},
regional: {
@@ -537,6 +541,8 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
fileVersionLabel: "Versión",
searchLabel: "Buscar",
restoreConnection: "Conectar de nuevo",
},
regional: {