mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 22:44:11 +00:00
wip files demo
This commit is contained in:
@@ -158,6 +158,7 @@ export class AttachmentsComponent implements OnInit {
|
||||
this.emergencyAccessId,
|
||||
);
|
||||
url = attachmentDownloadResponse.url;
|
||||
alert(url);
|
||||
} catch (e) {
|
||||
if (e instanceof ErrorResponse && (e as ErrorResponse).statusCode === 404) {
|
||||
url = attachment.url;
|
||||
@@ -239,6 +240,7 @@ export class AttachmentsComponent implements OnInit {
|
||||
this.reuploadPromises[attachment.id] = Promise.resolve().then(async () => {
|
||||
// 1. Download
|
||||
a.downloading = true;
|
||||
alert(attachment.url);
|
||||
const response = await fetch(new Request(attachment.url, { cache: "no-store" }));
|
||||
if (response.status !== 200) {
|
||||
this.platformUtilsService.showToast("error", null, this.i18nService.t("errorOccurred"));
|
||||
|
||||
Reference in New Issue
Block a user