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
+14 -2
View File
@@ -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(
+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.",