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", transferChannelHeadline: "Transfer Chanel",
transferKeyHeadline: "Transfer Encryption Key", transferKeyHeadline: "Transfer Encryption Key",
sendButton: "Send", sendButton: "Send",
sendAgainButton: "Send again",
/// ///
filesSentCount: (count) => `Files sent: ${count}.`, filesSentCount: (count) => `Files sent: ${count}.`,
allFilesSent: "Done.", allFilesSent: "Done.",
@@ -2703,6 +2704,7 @@
transferChannelHeadline: "\xDCbertragungskanal", transferChannelHeadline: "\xDCbertragungskanal",
transferKeyHeadline: "Schl\xFCssel", transferKeyHeadline: "Schl\xFCssel",
sendButton: "Senden", sendButton: "Senden",
sendAgainButton: "Erneut senden",
filesSentCount: (count) => `Dateien gesendet: ${count}.`, filesSentCount: (count) => `Dateien gesendet: ${count}.`,
allFilesSent: "Fertig.", allFilesSent: "Fertig.",
filesReceivedCount: (count) => `Dateien empfangen: ${count}.` filesReceivedCount: (count) => `Dateien empfangen: ${count}.`
@@ -2870,6 +2872,7 @@
transferChannelHeadline: "Canal de Transferencia", transferChannelHeadline: "Canal de Transferencia",
transferKeyHeadline: "Clave de Encriptaci\xF3n de Transferencia", transferKeyHeadline: "Clave de Encriptaci\xF3n de Transferencia",
sendButton: "Enviar", sendButton: "Enviar",
sendAgainButton: "Enviar otra vez",
filesSentCount: (count) => `Archivos enviados: ${count}.`, filesSentCount: (count) => `Archivos enviados: ${count}.`,
allFilesSent: "Hecho.", allFilesSent: "Hecho.",
filesReceivedCount: (count) => `Archivos recibidos: ${count}.` filesReceivedCount: (count) => `Archivos recibidos: ${count}.`
@@ -5125,15 +5128,24 @@
StringToTextSpan StringToTextSpan
] ]
} }
)), /* @__PURE__ */ createElement( )), /* @__PURE__ */ createElement("div", { class: "flex-row width-100" }, /* @__PURE__ */ createElement(
"button", "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, "on:click": fileTransferViewModel2.hideModal,
"toggle:disabled": fileTransferViewModel2.didNotFinishSending "toggle:disabled": fileTransferViewModel2.didNotFinishSending
}, },
translations.general.closeButton, translations.general.closeButton,
/* @__PURE__ */ createElement("span", { class: "icon" }, "close") /* @__PURE__ */ createElement("span", { class: "icon" }, "close")
))); ))));
} }
function TransferDataInputModal(fileTransferViewModel2) { function TransferDataInputModal(fileTransferViewModel2) {
const isPresented = createProxyState( const isPresented = createProxyState(
+10
View File
@@ -269,7 +269,16 @@ function TransferDisplayModal(fileTransferViewModel: FileTransferViewModel) {
]} ]}
></div> ></div>
</main> </main>
<div class="flex-row width-100">
<button <button
class="flex"
on:click={fileTransferViewModel.initiateTransfer}
>
{translations.dataTransferModal.sendAgainButton}
<span class="icon">restart_alt</span>
</button>
<button
class="flex"
on:click={fileTransferViewModel.hideModal} on:click={fileTransferViewModel.hideModal}
toggle:disabled={fileTransferViewModel.didNotFinishSending} toggle:disabled={fileTransferViewModel.didNotFinishSending}
> >
@@ -278,6 +287,7 @@ function TransferDisplayModal(fileTransferViewModel: FileTransferViewModel) {
</button> </button>
</div> </div>
</div> </div>
</div>
); );
} }
+3
View File
@@ -108,6 +108,7 @@ const englishTranslations = {
transferKeyHeadline: "Transfer Encryption Key", transferKeyHeadline: "Transfer Encryption Key",
sendButton: "Send", sendButton: "Send",
sendAgainButton: "Send again",
/// ///
@@ -370,6 +371,7 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
transferKeyHeadline: "Schlüssel", transferKeyHeadline: "Schlüssel",
sendButton: "Senden", sendButton: "Senden",
sendAgainButton: "Erneut senden",
filesSentCount: (count) => `Dateien gesendet: ${count}.`, filesSentCount: (count) => `Dateien gesendet: ${count}.`,
allFilesSent: "Fertig.", allFilesSent: "Fertig.",
@@ -603,6 +605,7 @@ const allTranslations: { [language: string]: typeof englishTranslations } = {
transferKeyHeadline: "Clave de Encriptación de Transferencia", transferKeyHeadline: "Clave de Encriptación de Transferencia",
sendButton: "Enviar", sendButton: "Enviar",
sendAgainButton: "Enviar otra vez",
filesSentCount: (count) => `Archivos enviados: ${count}.`, filesSentCount: (count) => `Archivos enviados: ${count}.`,
allFilesSent: "Hecho.", allFilesSent: "Hecho.",