Skip to content

Commit

Permalink
Merge pull request #263 from appwrite/feat-add-event-modal-description
Browse files Browse the repository at this point in the history
feat: add even modal description
  • Loading branch information
TorstenDittmann committed Feb 9, 2023
2 parents 150f2e1 + 7d6d02d commit df37097
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/eventModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@

<Modal bind:show on:submit={create} size="big">
<svelte:fragment slot="header">Create Event</svelte:fragment>

<slot />
<div>
<p class="u-text">Choose a service</p>
<div class="u-flex u-gap-8 u-margin-block-start-8">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,13 @@
</CardGrid>
</Form>

<EventModal bind:show={showEvents} initialValue={eventValue} on:created={handleEvent} />
<EventModal bind:show={showEvents} initialValue={eventValue} on:created={handleEvent}>
<p class="text">
Select events in your Appwrite project that will trigger your function. <a
href="https://appwrite.io/docs/events"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more about Appwrite Events</a
>.
</p>
</EventModal>
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,14 @@
</WizardStep>

{#if showCreate}
<EventModal bind:show={showCreate} on:created={handleCreated} />
<EventModal bind:show={showCreate} on:created={handleCreated}>
<p class="text">
Select events in your Appwrite project that will trigger your function. <a
href="https://appwrite.io/docs/events"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more about Appwrite Events</a
>.
</p>
</EventModal>
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,13 @@
</CardGrid>
</Form>

<EventModal bind:show={showCreateEvent} on:created={handleEvent} />
<EventModal bind:show={showCreateEvent} on:created={handleEvent}>
<p class="text">
Select events in your Appwrite project that will trigger your webhook. <a
href="https://appwrite.io/docs/events"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more about Appwrite Events</a
>.
</p>
</EventModal>
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,14 @@
</WizardStep>

{#if showCreate}
<EventModal bind:show={showCreate} on:created={handleCreated} />
<EventModal bind:show={showCreate} on:created={handleCreated}>
<p class="text">
Select events in your Appwrite project that will trigger your webhook. <a
href="https://appwrite.io/docs/events"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more about Appwrite Events</a
>.
</p>
</EventModal>
{/if}

1 comment on commit df37097

@vercel
Copy link

@vercel vercel bot commented on df37097 Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.