Merge pull request #1154 from appwrite/fix-experimental-relationships

Change Beta label to Experimental for relationships
This commit is contained in:
Steven Nguyen authored and GitHub committed 2025-01-09 11:44:55 -08:00
commit 6ecd2598d7
3 files changed
+18 -4

No files matched your search

+2
View File
@@ -8,6 +8,7 @@
export let show = false;
export let size: 'small' | 'big' | 'huge' = null;
export let icon: string = null;
export let iconNotMobile: boolean = false;
export let state: 'success' | 'warning' | 'error' | 'info' = null;
export let error: string = null;
export let closable = true;
@@ -39,6 +40,7 @@
{#if icon}
<div
class="avatar is-medium"
class:is-not-mobile={iconNotMobile}
class:is-success={state === 'success'}
class:is-warning={state === 'warning'}
class:is-danger={state === 'error'}
@@ -65,13 +65,19 @@
}
</script>
<Modal {error} size="big" bind:show={showEdit} onSubmit={submit} icon={option?.icon}>
<Modal
{error}
size="big"
bind:show={showEdit}
onSubmit={submit}
icon={option?.icon}
iconNotMobile={option?.type === 'relationship'}>
<svelte:fragment slot="title">
<div class="u-flex u-cross-center u-gap-8">
{option?.name}
{#if option?.type === 'relationship'}
<div class="tag eyebrow-heading-3">
<span class="text u-x-small">Beta</span>
<span class="text u-x-small">Experimental</span>
</div>
{/if}
</div>
@@ -66,13 +66,19 @@
}
</script>
<Modal {error} size="big" bind:show={showCreate} onSubmit={submit} icon={$option?.icon}>
<Modal
{error}
size="big"
bind:show={showCreate}
onSubmit={submit}
icon={$option?.icon}
iconNotMobile={selectedOption === 'Relationship'}>
<svelte:fragment slot="title">
{#if selectedOption === 'Relationship'}
<span class="u-flex u-gap-16 u-cross-center">
{selectedOption}
<div class="tag eyebrow-heading-3">
<span class="text u-x-small">Beta</span>
<span class="text u-x-small">Experimental</span>
</div>
</span>
{:else}