mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
Do not evaluate callback function when testing existence (#266)
This commit is contained in:
parent
a4ac842cec
commit
eef8a2a0f7
@ -169,12 +169,12 @@ export class SendComponent implements OnInit {
|
|||||||
this.actionPromise = this.sendService.deleteWithServer(s.id);
|
this.actionPromise = this.sendService.deleteWithServer(s.id);
|
||||||
await this.actionPromise;
|
await this.actionPromise;
|
||||||
|
|
||||||
if (this.onSuccessfulDelete() != null) {
|
if (this.onSuccessfulDelete != null) {
|
||||||
this.onSuccessfulDelete();
|
this.onSuccessfulDelete();
|
||||||
} else {
|
} else {
|
||||||
// Default actions
|
// Default actions
|
||||||
this.platformUtilsService.showToast('success', null, this.i18nService.t('deletedSend'));
|
this.platformUtilsService.showToast('success', null, this.i18nService.t('deletedSend'));
|
||||||
await this.load();
|
await this.refresh();
|
||||||
}
|
}
|
||||||
} catch { }
|
} catch { }
|
||||||
this.actionPromise = null;
|
this.actionPromise = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user