mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
done changes liek replacing anchor with Links and removing bad empty states
This commit is contained in:
1 parent
fde78dfa49
commit
ce3d0e0149
5 files changed
+19
-27
No files matched your search
@@ -243,11 +243,7 @@
|
||||
{:else if $hasPageQueries}
|
||||
<EmptyFilter resource="messages" />
|
||||
{:else if data.search}
|
||||
<EmptySearch>
|
||||
<div class="u-text-center">
|
||||
<b>Sorry, we couldn't find '{data.search}'</b>
|
||||
<p>There are no messages that match your search.</p>
|
||||
</div>
|
||||
<EmptySearch target="messages" search={data.search}>
|
||||
<div class="u-flex u-gap-16">
|
||||
<Button external href="https://appwrite.io/docs/products/messaging/messages" text>
|
||||
Documentation
|
||||
|
||||
@@ -46,11 +46,7 @@
|
||||
{:else if $hasPageQueries}
|
||||
<EmptyFilter resource="providers" />
|
||||
{:else if data.search && data.search !== 'empty'}
|
||||
<EmptySearch>
|
||||
<div class="u-text-center">
|
||||
<b>Sorry, we couldn't find '{data.search}'</b>
|
||||
<p>There are no providers that match your search.</p>
|
||||
</div>
|
||||
<EmptySearch target="providers" search={data.search}>
|
||||
<Button
|
||||
secondary
|
||||
href={`${base}/project-${page.params.region}-${page.params.project}/messaging/providers`}>
|
||||
|
||||
@@ -97,11 +97,7 @@
|
||||
{:else if $hasPageQueries}
|
||||
<EmptyFilter resource="topics" />
|
||||
{:else if data.search}
|
||||
<EmptySearch>
|
||||
<div class="u-text-center">
|
||||
<b>Sorry, we couldn't find '{data.search}'</b>
|
||||
<p>There are no topics that match your search.</p>
|
||||
</div>
|
||||
<EmptySearch target="topics" search={data.search}>
|
||||
<Button
|
||||
secondary
|
||||
href={`${base}/project-${page.params.region}-${page.params.project}/messaging/topics`}>
|
||||
|
||||
+10
-8
@@ -25,8 +25,9 @@
|
||||
import { writable } from 'svelte/store';
|
||||
import type { Column } from '$lib/helpers/types';
|
||||
import { base } from '$app/paths';
|
||||
import { Icon, Layout } from '@appwrite.io/pink-svelte';
|
||||
import { Icon, Layout, Typography } from '@appwrite.io/pink-svelte';
|
||||
import { IconPlus } from '@appwrite.io/pink-icons-svelte';
|
||||
import { Link } from '$lib/elements';
|
||||
|
||||
export let data;
|
||||
let showAdd = false;
|
||||
@@ -139,13 +140,14 @@
|
||||
bind:targetsById={$targetsById}
|
||||
on:update={addTargets}>
|
||||
<svelte:fragment slot="description">
|
||||
<p class="text">
|
||||
Add subscribers to this topic by selecting the targets for directing messages. <a
|
||||
<Typography.Text>
|
||||
Add subscribers to this topic by selecting the targets for directing messages.{' '}
|
||||
<Link
|
||||
href="https://appwrite.io/docs/products/messaging/topics#subscribe-targets-to-topics"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link">Learn more</a
|
||||
>.
|
||||
</p>
|
||||
external>
|
||||
Learn more
|
||||
</Link>
|
||||
.
|
||||
</Typography.Text>
|
||||
</svelte:fragment>
|
||||
</UserTargetsModal>
|
||||
@@ -124,10 +124,12 @@
|
||||
</script>
|
||||
|
||||
<Modal {title} bind:show onSubmit={submit} on:close={reset}>
|
||||
<Typography.Text>
|
||||
Select existing topics you want to send this message to its targets. The message will be
|
||||
sent only to {getProviderText(providerType)} targets.
|
||||
</Typography.Text>
|
||||
<slot slot="description" name="description">
|
||||
<Typography.Text>
|
||||
Select existing topics you want to send this message to its targets. The message will be
|
||||
sent only to {getProviderText(providerType)} targets.
|
||||
</Typography.Text>
|
||||
</slot>
|
||||
<Layout.Stack>
|
||||
<InputSearch
|
||||
autofocus
|
||||
|
||||
Reference in new issue
Block a user