mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
@@ -299,12 +299,13 @@ export class AddEditComponent implements OnInit {
|
|||||||
this.password = null;
|
this.password = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const encSend = await this.encryptSend(file);
|
this.formPromise = this.encryptSend(file)
|
||||||
|
.then(async encSend => {
|
||||||
try {
|
try {
|
||||||
this.formPromise = this.sendService.saveWithServer(encSend);
|
const uploadPromise = this.sendService.saveWithServer(encSend);
|
||||||
let inactive = false;
|
let inactive = false;
|
||||||
setTimeout(() => inactive = true, 4500);
|
setTimeout(() => inactive = true, 4500);
|
||||||
await this.formPromise;
|
await uploadPromise;
|
||||||
if (this.send.id == null) {
|
if (this.send.id == null) {
|
||||||
this.send.id = encSend[0].id;
|
this.send.id = encSend[0].id;
|
||||||
}
|
}
|
||||||
@@ -318,8 +319,10 @@ export class AddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch { }
|
} catch { }
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
return await this.formPromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
async showSuccessMessage(inactive: boolean) {
|
async showSuccessMessage(inactive: boolean) {
|
||||||
|
|||||||
Reference in New Issue
Block a user