add on:enter to export inputs
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -758,6 +758,7 @@ function ExportModal(
|
|||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
bind:value={fileTransferViewModel.exportKey}
|
bind:value={fileTransferViewModel.exportKey}
|
||||||
|
on:enter={fileTransferViewModel.downloadFile}
|
||||||
type="password"
|
type="password"
|
||||||
></input>
|
></input>
|
||||||
</div>
|
</div>
|
||||||
@@ -776,6 +777,7 @@ function ExportModal(
|
|||||||
bind:value={
|
bind:value={
|
||||||
fileTransferViewModel.exportKeyConfirmation
|
fileTransferViewModel.exportKeyConfirmation
|
||||||
}
|
}
|
||||||
|
on:enter={fileTransferViewModel.downloadFile}
|
||||||
type="password"
|
type="password"
|
||||||
></input>
|
></input>
|
||||||
</div>
|
</div>
|
||||||
@@ -901,6 +903,7 @@ function ImportDecryptionDataModal(
|
|||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
bind:value={fileTransferViewModel.importKey}
|
bind:value={fileTransferViewModel.importKey}
|
||||||
|
on:enter={fileTransferViewModel.decryptImport}
|
||||||
type="password"
|
type="password"
|
||||||
></input>
|
></input>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Binary file not shown.
@@ -139,6 +139,7 @@ export default class FileTransferViewModel extends Context {
|
|||||||
};
|
};
|
||||||
|
|
||||||
downloadFile = async (): Promise<void> => {
|
downloadFile = async (): Promise<void> => {
|
||||||
|
if (this.cannotExport.value == true) return;
|
||||||
const date = new Date().toISOString().split("T")[0];
|
const date = new Date().toISOString().split("T")[0];
|
||||||
|
|
||||||
const backup: Blob =
|
const backup: Blob =
|
||||||
|
|||||||
Reference in New Issue
Block a user