fix: admin/fs: saving with errors was not showing dialog like other forms

Massimo Melina committed Jun 3, 2022 at 17:52 UTC 531ab5f8cd82f812c6c3465745505cf9adbbb7e0
1 file changed +2
admin/src/FileForm.ts
+2
@@ -10,6 +10,7 @@ import { reloadVfs, VfsNode, Who } from './VfsPage'
10 import md from './md'
11 import _ from 'lodash'
12 import FileField from './FileField'
13 +import { alertDialog } from './dialog'
14
15 interface Account { username: string }
16
@@ -58,6 +59,7 @@ export default function FileForm({ file }: { file: VfsNode }) {
59 }
60 }, "Close")
61 ],
62 + onError: alertDialog,
63 save: {
64 sx: modifiedSx(!isEqualLax(values, file)),
65 async onClick() {