setLockOption
This commit is contained in:
parent
6c3f0a538f
commit
4960fa18c0
|
@ -1,4 +1,5 @@
|
|||
export abstract class LockService {
|
||||
checkLock: () => Promise<void>;
|
||||
lock: () => Promise<void>;
|
||||
setLockOption: (lockOption: number) => Promise<void>;
|
||||
}
|
||||
|
|
|
@ -61,4 +61,9 @@ export class LockService implements LockServiceAbstraction {
|
|||
this.collectionService.clearCache();
|
||||
this.messagingService.send('locked');
|
||||
}
|
||||
|
||||
async setLockOption(lockOption: number): Promise<void> {
|
||||
await this.storageService.save(ConstantsService.lockOptionKey, lockOption);
|
||||
await this.cryptoService.toggleKey();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue