Almost finished deleting layers

There's a bug that happens when the user tries to delete the Layer 0. All the other ones work correctly.
This commit is contained in:
unsettledgames
2020-06-22 23:07:40 +02:00
parent 349a4417d8
commit 50b962a7f5
5 changed files with 147 additions and 27 deletions

View File

@@ -153,6 +153,15 @@
{{svg "plus.svg" width="20" height="20"}} Add layer
</button>
</li>
<ul id = "layer-properties-menu">
<li>
<button id = "delete-layer" onclick = "deleteLayer()">Delete</button>
</li>
<li>
<button id = "rename-layer">Rename</button>
</li>
</ul>
</ul>
<div id="eyedropper-preview"></div>
@@ -276,8 +285,6 @@
</div>
</div>
</div>
<script>
palettes = { {{#palettes}}
'{{title}}': {