From 91538debbc43db3b5c8d5c25c93ef0c4ddc946b8 Mon Sep 17 00:00:00 2001 From: Frederik Pytlick Date: Mon, 9 Oct 2023 12:04:36 +0200 Subject: [PATCH] #16 - Refactored modal --- src/components/base/confirmModal.vue | 28 ++++++++++++--- src/components/base/modal.vue | 31 ++++++++++++++--- src/components/item/Browser.vue | 40 +++++++++++----------- src/components/item/file/EditModal.vue | 32 ++++++++++++----- src/components/item/file/File.vue | 29 ++++++---------- src/components/item/folder/CreateModal.vue | 39 +++++++++++++++------ src/components/item/folder/EditModal.vue | 39 +++++++++++++++------ src/components/item/folder/Folder.vue | 31 ++++++----------- src/lib/contextMenu.ts | 7 ++++ src/lib/items/folders.ts | 39 ++++++++------------- src/stores/modal.ts | 3 ++ 11 files changed, 195 insertions(+), 123 deletions(-) create mode 100644 src/stores/modal.ts diff --git a/src/components/base/confirmModal.vue b/src/components/base/confirmModal.vue index 0ce0c9b..234a9bb 100644 --- a/src/components/base/confirmModal.vue +++ b/src/components/base/confirmModal.vue @@ -1,5 +1,5 @@ diff --git a/src/components/item/folder/CreateModal.vue b/src/components/item/folder/CreateModal.vue index a9690df..eee6849 100644 --- a/src/components/item/folder/CreateModal.vue +++ b/src/components/item/folder/CreateModal.vue @@ -1,11 +1,21 @@