mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Remove step
This commit is contained in:
1 parent
028ba7c4d2
commit
c71cb3c5e9
1 file changed
-68
@@ -1,68 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { FormList, InputSelect, InputText, InputTextarea } from '$lib/elements/forms';
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { supportData } from './store';
|
||||
import { Pill } from '$lib/elements';
|
||||
import { onMount } from 'svelte';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
|
||||
let options: {
|
||||
value: string;
|
||||
label: string;
|
||||
}[];
|
||||
|
||||
onMount(async () => {
|
||||
const projectList = await sdk.forConsole.projects.list();
|
||||
options = projectList.projects.map((project) => ({
|
||||
value: project.$id,
|
||||
label: project.name
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
|
||||
<WizardStep>
|
||||
<svelte:fragment slot="title">How can we help you?</svelte:fragment>
|
||||
<svelte:fragment slot="subtitle">
|
||||
Please describe your request in detail. If applicable, include steps for reproduction of any
|
||||
in-app issues.
|
||||
</svelte:fragment>
|
||||
<div class="common-section">
|
||||
<p class="label">Choose a topic</p>
|
||||
<div class="u-flex u-gap-8 u-margin-block-start-8">
|
||||
{#each ['general', 'billing', 'technical'] as topic}
|
||||
<Pill
|
||||
button
|
||||
selected={$supportData.category === topic}
|
||||
on:click={() => {
|
||||
$supportData.category = topic;
|
||||
}}>{topic}</Pill>
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<FormList>
|
||||
{#if options?.length}
|
||||
<InputSelect
|
||||
id="project"
|
||||
label="Choose a project"
|
||||
placeholder="Select project"
|
||||
optionalText="(optional)"
|
||||
bind:value={$supportData.project}
|
||||
{options} />
|
||||
{/if}
|
||||
<InputText
|
||||
label="Subject"
|
||||
id="subject"
|
||||
placeholder="What do you need help with?"
|
||||
bind:value={$supportData.subject}
|
||||
required />
|
||||
|
||||
<InputTextarea
|
||||
label="Tell us a bit more"
|
||||
id="message"
|
||||
placeholder="Type here..."
|
||||
bind:value={$supportData.message}
|
||||
required />
|
||||
</FormList>
|
||||
</div>
|
||||
</WizardStep>
|
||||
Reference in new issue
Block a user