UPDATE[WebApp]: we can now delete models on the localStorage

This commit is contained in:
Nicolás Hatcher
2024-10-13 14:13:52 +02:00
committed by Nicolás Hatcher Andrés
parent 3058a63e4f
commit 480640dc98
4 changed files with 47 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ export function FileBar(properties: {
newModel: () => void;
setModel: (key: string) => void;
onModelUpload: (blob: ArrayBuffer, fileName: string) => Promise<void>;
onDelete: () => void;
}) {
const hiddenInputRef = useRef<HTMLInputElement>(null);
const [toast, setToast] = useState(false);
@@ -32,6 +33,7 @@ export function FileBar(properties: {
const fileName = model.getName();
await downloadModel(bytes, fileName);
}}
onDelete={properties.onDelete}
/>
<WorkbookTitle
name={properties.model.getName()}