From 360318ec5da2b581fa41df2b81c7bfb42a0f7972 Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Wed, 9 Aug 2023 18:42:56 +0100 Subject: [PATCH 1/4] add title and description props and slots for Modal --- src/lib/components/eventModal.svelte | 2 +- src/lib/components/modal.svelte | 12 +++++++++++- src/lib/components/permissions/custom.svelte | 2 +- src/lib/components/permissions/team.svelte | 2 +- src/lib/components/permissions/user.svelte | 2 +- src/lib/layout/wizardExitModal.svelte | 2 +- src/routes/console/account/delete.svelte | 2 +- src/routes/console/createOrganization.svelte | 2 +- .../organization-[organization]/createMember.svelte | 2 +- .../organization-[organization]/createProject.svelte | 2 +- .../organization-[organization]/deleteMember.svelte | 2 +- .../deleteOrganization.svelte | 2 +- .../console/project-[project]/auth/appleOAuth.svelte | 2 +- .../console/project-[project]/auth/auth0OAuth.svelte | 2 +- .../project-[project]/auth/authentikOAuth.svelte | 2 +- .../console/project-[project]/auth/createTeam.svelte | 2 +- .../console/project-[project]/auth/createUser.svelte | 2 +- .../project-[project]/auth/gitlabOAuth.svelte | 2 +- .../project-[project]/auth/googleOAuth.svelte | 2 +- .../console/project-[project]/auth/mainOAuth.svelte | 2 +- .../project-[project]/auth/microsoftOAuth.svelte | 2 +- .../console/project-[project]/auth/oidcOAuth.svelte | 2 +- .../console/project-[project]/auth/oktaOAuth.svelte | 2 +- .../auth/teams/team-[team]/createMembership.svelte | 2 +- .../auth/teams/team-[team]/deleteMembership.svelte | 2 +- .../auth/teams/team-[team]/deleteTeam.svelte | 2 +- .../auth/user-[user]/deleteAllSessions.svelte | 2 +- .../auth/user-[user]/deleteMembership.svelte | 2 +- .../auth/user-[user]/deleteSession.svelte | 2 +- .../auth/user-[user]/deleteUser.svelte | 2 +- .../project-[project]/databases/create.svelte | 2 +- .../collection-[collection]/(filters)/filters.svelte | 2 +- .../attributes/deleteAttribute.svelte | 2 +- .../collection-[collection]/attributes/edit.svelte | 2 +- .../collection-[collection]/createAttribute.svelte | 2 +- .../document-[document]/delete.svelte | 2 +- .../indexes/createIndex.svelte | 2 +- .../indexes/deleteIndex.svelte | 2 +- .../indexes/overviewIndex.svelte | 2 +- .../relationshipsModal.svelte | 2 +- .../settings/deleteCollection.svelte | 2 +- .../collection-[collection]/table.svelte | 2 +- .../database-[database]/createCollection.svelte | 2 +- .../databases/database-[database]/delete.svelte | 2 +- .../databases/database-[database]/table.svelte | 2 +- .../console/project-[project]/databases/table.svelte | 2 +- .../functions/createVariable.svelte | 2 +- .../functions/function-[function]/activate.svelte | 2 +- .../functions/function-[function]/create.svelte | 2 +- .../functions/function-[function]/delete.svelte | 2 +- .../functions/function-[function]/execute.svelte | 2 +- .../functions/function-[function]/rebuild.svelte | 2 +- .../function-[function]/settings/deleteModal.svelte | 2 +- .../settings/uploadVariablesModal.svelte | 2 +- .../overview/keys/[key]/delete.svelte | 2 +- .../overview/platforms/[platform]/delete.svelte | 2 +- .../project-[project]/settings/deleteProject.svelte | 2 +- .../settings/disableAllServices.svelte | 2 +- .../project-[project]/settings/domains/delete.svelte | 2 +- .../settings/enableAllServices.svelte | 2 +- .../settings/migrations/details.svelte | 2 +- .../settings/migrations/exportModal.svelte | 2 +- .../settings/transferProject.svelte | 2 +- .../settings/webhooks/[webhook]/delete.svelte | 2 +- .../settings/webhooks/[webhook]/regenerate.svelte | 2 +- .../storage/bucket-[bucket]/create.svelte | 2 +- .../storage/bucket-[bucket]/deleteBucket.svelte | 2 +- .../storage/bucket-[bucket]/deleteFile.svelte | 2 +- .../bucket-[bucket]/file-[file]/deleteFile.svelte | 2 +- .../console/project-[project]/storage/create.svelte | 2 +- 70 files changed, 80 insertions(+), 70 deletions(-) diff --git a/src/lib/components/eventModal.svelte b/src/lib/components/eventModal.svelte index b7a00370ab..016e18b160 100644 --- a/src/lib/components/eventModal.svelte +++ b/src/lib/components/eventModal.svelte @@ -246,7 +246,7 @@ - Create Event + Create Event

Choose a service

diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index 5b4e58757b..636e713ca3 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -15,6 +15,8 @@ export let onSubmit: (e: SubmitEvent) => Promise | void = function () { return; }; + export let title = ''; + export let description = ''; let dialog: HTMLDialogElement; let alert: HTMLElement; @@ -102,8 +104,11 @@
{/if} + {#if closable} @@ -122,6 +127,11 @@ {/if} +

+ + {description} + +