shoddily fixes issue 232
This commit is contained in:
parent
b48f53f967
commit
2319fbb601
1 changed files with 7 additions and 4 deletions
|
@ -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}'`, {
|
||||
type: "success",
|
||||
});
|
||||
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();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue