shoddily fixes issue 232

This commit is contained in:
tim h 2023-07-09 08:36:34 -05:00
parent b48f53f967
commit 2319fbb601

View file

@ -97,10 +97,13 @@
workspaces.get(id).onsuccess = (e) => {
const ws = e.target.result;
if (ws) {
workspaces.put({id, workspace}).onsuccess = () => {
notifications.notify(`Workspace saved as '${ws.value.name}'`, {
var name = ws.name;
workspaces.delete(id).onsuccess = () => {
workspaces.add({id, name, workspace}).onsuccess = () => {
notifications.notify(`Workspace saved as '${name}'`, {
type: "success",
});
}; //workspaces.put is failing, delete and re-add?
listWorkspaces();
};
}