From e17149d7e52f1e14b96cb1667c392098c186a30a Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Tue, 20 Feb 2024 15:27:15 -0500 Subject: [PATCH] Decouples ProjectDialog from application state - Creates container component for connecting with application state - Creates presentational component with corresponding storybook --- src/common/dialog/ProjectDialog.svelte | 194 ++++++++---------- .../dialog/ProjectDialogContainer.svelte | 83 ++++++++ .../stories/ProjectDialog.stories.svelte | 63 ++++++ src/pages/app/MainContainer.svelte | 4 +- 4 files changed, 234 insertions(+), 110 deletions(-) create mode 100644 src/common/dialog/ProjectDialogContainer.svelte create mode 100644 src/common/dialog/stories/ProjectDialog.stories.svelte diff --git a/src/common/dialog/ProjectDialog.svelte b/src/common/dialog/ProjectDialog.svelte index fcd6c8aad..2cc243d60 100644 --- a/src/common/dialog/ProjectDialog.svelte +++ b/src/common/dialog/ProjectDialog.svelte @@ -1,136 +1,99 @@ - - import { layout, showCollaborators, embedProject } from "@/manager/layout.js"; +
- -
-

+ +
+

{#if editing} {$_("dialogProjectDialog.editProject")} {:else} {$_("dialogProjectDialog.createProject")} {/if}

-
- -

+

+ + +