mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: rename variable
This commit is contained in:
1 parent
4d46d86ac9
commit
229fc2aa04
5 files changed
+11
-13
No files matched your search
@@ -4,7 +4,7 @@
|
||||
import { Pill } from '$lib/elements';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
|
||||
export let showCreate = false;
|
||||
export let show = false;
|
||||
let selectedService: typeof services[0] = null;
|
||||
let selectedRequest: typeof selectedService['requests'][0] = null;
|
||||
let selectedEvent: string = null;
|
||||
@@ -16,7 +16,7 @@
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
function create() {
|
||||
showCreate = false;
|
||||
show = false;
|
||||
dispatch('created', copyValue);
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
helper = null;
|
||||
}
|
||||
|
||||
$: if (!showCreate) {
|
||||
$: if (!show) {
|
||||
selectedService = null;
|
||||
selectedRequest = null;
|
||||
selectedEvent = null;
|
||||
@@ -154,13 +154,11 @@
|
||||
showInput = false;
|
||||
}
|
||||
|
||||
$: console.log(eventString);
|
||||
|
||||
//TODO: remove inline style
|
||||
</script>
|
||||
|
||||
<Form noMargin on:submit={create}>
|
||||
<Modal bind:show={showCreate} size="big">
|
||||
<Modal bind:show size="big">
|
||||
<svelte:fragment slot="header">Create Event</svelte:fragment>
|
||||
|
||||
<div>
|
||||
@@ -303,7 +301,7 @@
|
||||
{/if}
|
||||
|
||||
<svelte:fragment slot="footer">
|
||||
<Button secondary on:click={() => (showCreate = false)}>Cancel</Button>
|
||||
<Button secondary on:click={() => (show = false)}>Cancel</Button>
|
||||
<Button disabled={showInput || !copyValue} submit>Create</Button>
|
||||
</svelte:fragment>
|
||||
</Modal>
|
||||
|
||||
+3
-3
@@ -339,13 +339,13 @@
|
||||
{/each}
|
||||
</TableList>
|
||||
{:else}
|
||||
<Empty isButton on:click={() => (showEvents = !showEvents)}
|
||||
<Empty isButton on:click={() => (showEvents = true)}
|
||||
>Add a event to get started
|
||||
</Empty>
|
||||
{/if}
|
||||
|
||||
<div class="u-flex u-margin-block-start-16">
|
||||
<Button text noMargin on:click={() => (showEvents = !showEvents)}>
|
||||
<Button text noMargin on:click={() => (showEvents = true)}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
<span class="u-text">Add event</span>
|
||||
</Button>
|
||||
@@ -562,5 +562,5 @@
|
||||
{/if}
|
||||
|
||||
{#if showEvents}
|
||||
<EventModal bind:showCreate={showEvents} on:created={handleEvent} />
|
||||
<EventModal bind:show={showEvents} on:created={handleEvent} />
|
||||
{/if}
|
||||
@@ -60,5 +60,5 @@
|
||||
</WizardStep>
|
||||
|
||||
{#if showCreate}
|
||||
<EventModal bind:showCreate on:created={handleCreated} />
|
||||
<EventModal bind:show={showCreate} on:created={handleCreated} />
|
||||
{/if}
|
||||
+1
-1
@@ -312,7 +312,7 @@
|
||||
<Delete bind:showDelete />
|
||||
<Regenerate bind:show={showRegenerate} />
|
||||
<EventModal
|
||||
bind:showCreate={showCreateEvent}
|
||||
bind:show={showCreateEvent}
|
||||
on:created={(e) => {
|
||||
events.push(e.detail[0]);
|
||||
events = events;
|
||||
|
||||
@@ -58,5 +58,5 @@
|
||||
</WizardStep>
|
||||
|
||||
{#if showCreate}
|
||||
<EventModal bind:showCreate on:created={handleCreated} />
|
||||
<EventModal bind:show={showCreate} on:created={handleCreated} />
|
||||
{/if}
|
||||
Reference in new issue
Block a user