chore: upgrade deps

This commit is contained in:
Mo
2022-03-22 12:37:21 -05:00
parent a764987b20
commit 8cd76c1b1f
4 changed files with 87 additions and 94 deletions

View File

@@ -169,11 +169,11 @@ export const AttachedFilesButton: FunctionComponent<Props> = observer(
let result: SNFile | undefined;
if (file.protected) {
keepMenuOpen(true);
result = await application.protections.unprotectFile(file);
result = await application.mutator.unprotectFile(file);
keepMenuOpen(false);
buttonRef.current?.focus();
} else {
result = await application.protections.protectFile(file);
result = await application.mutator.protectFile(file);
}
const isProtected = result ? result.protected : file.protected;
return isProtected;

View File

@@ -105,7 +105,7 @@ export const DataBackups = observer(({ application, appState }: Props) => {
let statusText = STRING_IMPORT_SUCCESS;
if ('error' in result) {
statusText = result.error;
statusText = result.error.text;
} else if (result.errorCount) {
statusText = StringImportError(result.errorCount);
}