From dca17742b43c415820318878072632a35a3312f5 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 12 Aug 2024 10:08:10 +0200 Subject: [PATCH] Studio: improve delete button --- src/UI/Studio/DeleteButton.svelte | 55 ++++++++++++++----------------- 1 file changed, 25 insertions(+), 30 deletions(-) diff --git a/src/UI/Studio/DeleteButton.svelte b/src/UI/Studio/DeleteButton.svelte index f05e88b39..191379f4a 100644 --- a/src/UI/Studio/DeleteButton.svelte +++ b/src/UI/Studio/DeleteButton.svelte @@ -1,10 +1,9 @@ -
- {#if deleteState === "init"} - - {:else if deleteState === "confirm"} -
- { - deleteState = "init" - }} - > - Don't delete - - deleteLayer()}> -
- - Do delete this {objectType} -
-
+ +
+ + Delete this {objectType} +
+ +
+
+ Deleting this layer will delete your version. If you clicked a layer made by someone else, their version will + remain. + + If you ever accidentally delete a layer, contact Pietervdvn. He might have a backup
- {/if} -
+ + deleteLayer()}> +
+ + Do delete this {objectType} +
+
+ +
+ + +