mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix(messaging): initialize topic, message, and provider id to null
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@
|
||||
let formComponent: Form;
|
||||
let isSubmitting = writable(false);
|
||||
let showCustomId = false;
|
||||
let id: string;
|
||||
let id: string | null = null;
|
||||
let subject: string;
|
||||
let content: string;
|
||||
let topics: string[];
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
let formComponent: Form;
|
||||
let isSubmitting = writable(false);
|
||||
let showCustomId = false;
|
||||
let id: string;
|
||||
let id: string | null = null;
|
||||
let file: Models.File;
|
||||
let data: Writable<[string, string][]> = writable([['', '']]);
|
||||
let title: string;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
let formComponent: Form;
|
||||
let isSubmitting = writable(false);
|
||||
let showCustomId = false;
|
||||
let id: string;
|
||||
let id: string | null = null;
|
||||
let content: string;
|
||||
let topics: string[];
|
||||
let users: string[];
|
||||
|
||||
+6
-8
@@ -4,14 +4,14 @@
|
||||
import { CustomId, LabelCard } from '$lib/components';
|
||||
import { providers } from '../store';
|
||||
import { InputText } from '$lib/elements/forms';
|
||||
import { Badge, Icon } from '@appwrite.io/pink-svelte';
|
||||
import { Tag, Icon } from '@appwrite.io/pink-svelte';
|
||||
import { IconPencil } from '@appwrite.io/pink-icons-svelte';
|
||||
import { Providers } from '../../provider.svelte';
|
||||
import { SmtpEncryption } from '@appwrite.io/console';
|
||||
|
||||
let name = '';
|
||||
let showCustomId = false;
|
||||
let id: string = null;
|
||||
let id: string | null = null;
|
||||
|
||||
$: {
|
||||
name;
|
||||
@@ -152,12 +152,10 @@
|
||||
|
||||
{#if !showCustomId}
|
||||
<div>
|
||||
<Badge
|
||||
variant="secondary"
|
||||
content="Provider ID"
|
||||
on:click={() => (showCustomId = !showCustomId)}>
|
||||
<Icon icon={IconPencil} size="s" slot="start" />
|
||||
</Badge>
|
||||
<Tag size="s" on:click={() => (showCustomId = !showCustomId)}>
|
||||
<Icon icon={IconPencil} size="s" />
|
||||
Provider ID
|
||||
</Tag>
|
||||
</div>
|
||||
{:else}
|
||||
<CustomId bind:show={showCustomId} name="Provider" bind:id autofocus={false} />
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
let name: string, id: string, error: string;
|
||||
let name: string,
|
||||
id: string | null = null,
|
||||
error: string;
|
||||
let showCustomId = false;
|
||||
|
||||
const create = async () => {
|
||||
|
||||
Reference in New Issue
Block a user