mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
change to arrow function to maintain bindings (#13001)
This commit is contained in:
@@ -1068,7 +1068,7 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async restore(c: CipherView): Promise<boolean> {
|
restore = async (c: CipherView): Promise<boolean> => {
|
||||||
if (!c.isDeleted) {
|
if (!c.isDeleted) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1093,7 +1093,7 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
async bulkRestore(ciphers: CipherView[]) {
|
async bulkRestore(ciphers: CipherView[]) {
|
||||||
if (ciphers.some((c) => !c.edit)) {
|
if (ciphers.some((c) => !c.edit)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user