add button to transfer data again

This commit is contained in:
marlon-erler
2024-07-28 19:32:04 +02:00
parent 89b3cb2080
commit 4c51ff7195
3 changed files with 34 additions and 9 deletions
+17 -7
View File
@@ -269,13 +269,23 @@ function TransferDisplayModal(fileTransferViewModel: FileTransferViewModel) {
]}
></div>
</main>
<button
on:click={fileTransferViewModel.hideModal}
toggle:disabled={fileTransferViewModel.didNotFinishSending}
>
{translations.general.closeButton}
<span class="icon">close</span>
</button>
<div class="flex-row width-100">
<button
class="flex"
on:click={fileTransferViewModel.initiateTransfer}
>
{translations.dataTransferModal.sendAgainButton}
<span class="icon">restart_alt</span>
</button>
<button
class="flex"
on:click={fileTransferViewModel.hideModal}
toggle:disabled={fileTransferViewModel.didNotFinishSending}
>
{translations.general.closeButton}
<span class="icon">close</span>
</button>
</div>
</div>
</div>
);
+3
View File
@@ -108,6 +108,7 @@ const englishTranslations = {
transferKeyHeadline: "Transfer Encryption Key",
sendButton: "Send",
sendAgainButton: "Send again",
///
@@ -370,6 +371,7 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
transferKeyHeadline: "Schlüssel",
sendButton: "Senden",
sendAgainButton: "Erneut senden",
filesSentCount: (count) => `Dateien gesendet: ${count}.`,
allFilesSent: "Fertig.",
@@ -603,6 +605,7 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
transferKeyHeadline: "Clave de Encriptación de Transferencia",
sendButton: "Enviar",
sendAgainButton: "Enviar otra vez",
filesSentCount: (count) => `Archivos enviados: ${count}.`,
allFilesSent: "Hecho.",