Merge pull request #241 from zero01101/issue232

shoddily fixes issue 232
This commit is contained in:
tim h 2023-07-09 08:37:19 -05:00 committed by GitHub
commit b369d3cfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 9 deletions

View file

@ -7,7 +7,7 @@
<link href="css/colors.css?v=f732f19" rel="stylesheet" />
<link href="css/icons.css?v=e6f94af" rel="stylesheet" />
<link href="css/index.css?v=aaad3e5" rel="stylesheet" />
<link href="css/index.css?v=fad20a2" rel="stylesheet" />
<link href="css/layers.css?v=92c0352" rel="stylesheet" />
<link href="css/ui/generic.css?v=30837f8" rel="stylesheet" />
@ -485,7 +485,7 @@
<!-- Basics -->
<script src="js/global.js?v=ac30d16" type="text/javascript"></script>
<script src="js/defaults.js?v=5b06818" type="text/javascript"></script>
<script src="js/extensions.js?v=fec7579" type="text/javascript"></script>
<script src="js/extensions.js?v=abb882a" type="text/javascript"></script>
<!-- Base Libs -->
<script src="js/lib/util.js?v=379aef7" type="text/javascript"></script>
@ -525,7 +525,7 @@
src="js/ui/tool/generic.js?v=3e678e0"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=45b8acd" type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=b55e592" type="text/javascript"></script>
<script
src="js/ui/tool/maskbrush.js?v=e9bd0eb"
type="text/javascript"></script>
@ -542,7 +542,7 @@
<!-- Initialize -->
<script
src="js/initalize/workspace.populate.js?v=2aea61f"
src="js/initalize/workspace.populate.js?v=925431d"
type="text/javascript"></script>
<script
src="js/initalize/shortcuts.populate.js?v=e68546f"

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}'`, {
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();
};
}

View file

@ -7,7 +7,7 @@
<link href="../css/colors.css?v=f732f19" rel="stylesheet" />
<link href="../css/icons.css?v=e6f94af" rel="stylesheet" />
<link href="../css/index.css?v=aaad3e5" rel="stylesheet" />
<link href="../css/index.css?v=fad20a2" rel="stylesheet" />
<link href="../css/layers.css?v=92c0352" rel="stylesheet" />
<link href="../css/ui/generic.css?v=30837f8" rel="stylesheet" />