More TypeScript

This commit is contained in:
Mo Bitar
2020-04-10 08:42:35 -05:00
parent e7651fe92b
commit b5b53fdc43
87 changed files with 256 additions and 2085 deletions

View File

@@ -1,4 +1,4 @@
import { EncryptionIntents, ProtectedActions } from 'snjs';
import { EncryptionIntents, ProtectedAction } from 'snjs';
export class ArchiveManager {
constructor(application) {
@@ -30,8 +30,8 @@ export class ArchiveManager {
});
};
if (await this.application.privilegesService.actionRequiresPrivilege(ProtectedActions.ManageBackups)) {
this.application.presentPrivilegesModal(ProtectedActions.ManageBackups, () => {
if (await this.application.privilegesService.actionRequiresPrivilege(ProtectedAction.ManageBackups)) {
this.application.presentPrivilegesModal(ProtectedAction.ManageBackups, () => {
run();
});
} else {