diff --git a/dist/index.js b/dist/index.js index 5b9163b7..9428fcf4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2523,6 +2523,7 @@ transferChannelHeadline: "Transfer Chanel", transferKeyHeadline: "Transfer Encryption Key", sendButton: "Send", + sendAgainButton: "Send again", /// filesSentCount: (count) => `Files sent: ${count}.`, allFilesSent: "Done.", @@ -2703,6 +2704,7 @@ transferChannelHeadline: "\xDCbertragungskanal", transferKeyHeadline: "Schl\xFCssel", sendButton: "Senden", + sendAgainButton: "Erneut senden", filesSentCount: (count) => `Dateien gesendet: ${count}.`, allFilesSent: "Fertig.", filesReceivedCount: (count) => `Dateien empfangen: ${count}.` @@ -2870,6 +2872,7 @@ transferChannelHeadline: "Canal de Transferencia", transferKeyHeadline: "Clave de Encriptaci\xF3n de Transferencia", sendButton: "Enviar", + sendAgainButton: "Enviar otra vez", filesSentCount: (count) => `Archivos enviados: ${count}.`, allFilesSent: "Hecho.", filesReceivedCount: (count) => `Archivos recibidos: ${count}.` @@ -5125,15 +5128,24 @@ StringToTextSpan ] } - )), /* @__PURE__ */ createElement( + )), /* @__PURE__ */ createElement("div", { class: "flex-row width-100" }, /* @__PURE__ */ createElement( "button", { + class: "flex", + "on:click": fileTransferViewModel2.initiateTransfer + }, + translations.dataTransferModal.sendAgainButton, + /* @__PURE__ */ createElement("span", { class: "icon" }, "restart_alt") + ), /* @__PURE__ */ createElement( + "button", + { + class: "flex", "on:click": fileTransferViewModel2.hideModal, "toggle:disabled": fileTransferViewModel2.didNotFinishSending }, translations.general.closeButton, /* @__PURE__ */ createElement("span", { class: "icon" }, "close") - ))); + )))); } function TransferDataInputModal(fileTransferViewModel2) { const isPresented = createProxyState( diff --git a/src/View/Modals/dataTransferModal.tsx b/src/View/Modals/dataTransferModal.tsx index 70d6ef20..2db6ef3f 100644 --- a/src/View/Modals/dataTransferModal.tsx +++ b/src/View/Modals/dataTransferModal.tsx @@ -269,13 +269,23 @@ function TransferDisplayModal(fileTransferViewModel: FileTransferViewModel) { ]} > - +
+ + +
); diff --git a/src/View/translations.ts b/src/View/translations.ts index 6e07f92e..3831d5a5 100644 --- a/src/View/translations.ts +++ b/src/View/translations.ts @@ -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.",