mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge branch 'main' of github.com:appwrite/console into fix-attribute-defaults
This commit is contained in:
commit
bcd1e1bf4f
3 files changed
+23
-4
No files matched your search
@@ -4,6 +4,7 @@
|
||||
import NullCheckbox from './nullCheckbox.svelte';
|
||||
|
||||
export let label: string;
|
||||
export let optionalText: string | undefined = undefined;
|
||||
export let showLabel = true;
|
||||
export let id: string;
|
||||
export let value = '';
|
||||
@@ -54,7 +55,7 @@
|
||||
</script>
|
||||
|
||||
<FormItem>
|
||||
<Label {required} hide={!showLabel} for={id}>
|
||||
<Label {required} {optionalText} hide={!showLabel} for={id}>
|
||||
{label}
|
||||
</Label>
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script>
|
||||
import { Mode, MODE } from '$lib/system';
|
||||
|
||||
import { isCloud } from '$lib/system';
|
||||
import { version } from '$routes/console/store';
|
||||
|
||||
const currentYear = new Date().getFullYear();
|
||||
@@ -11,7 +10,7 @@
|
||||
<ul class="inline-links is-no-padding-first-and-last u-x-small">
|
||||
<li class="inline-links-item">
|
||||
<div class="u-flex u-cross-center u-gap-8">
|
||||
{#if MODE !== Mode.CLOUD}
|
||||
{#if isCloud}
|
||||
<span class="icon-cloud" />
|
||||
{/if}
|
||||
{#if $version}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import InputEmail from '$lib/elements/forms/inputEmail.svelte';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
|
||||
export let id: string;
|
||||
export let label: string;
|
||||
export let value: string | null;
|
||||
export let optionalText: string | undefined = undefined;
|
||||
export let attribute: Models.AttributeUrl;
|
||||
</script>
|
||||
|
||||
<InputEmail
|
||||
{id}
|
||||
{label}
|
||||
{optionalText}
|
||||
placeholder="Enter URL"
|
||||
showLabel={!!label?.length}
|
||||
required={attribute.required}
|
||||
bind:value />
|
||||
Reference in new issue
Block a user