mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix(messaging): fix user targets modal title and description
The title and description should be different depending on whether you're adding a target to a message or a target to a topic.
This commit is contained in:
1 parent
9f6e605ea1
commit
e67c7e7322
3 files changed
+23
-10
No files matched your search
@@ -36,10 +36,14 @@
|
||||
dispatch('addTopics', e.detail);
|
||||
}} />
|
||||
<UserTargetsModal
|
||||
title="Select targets"
|
||||
{providerType}
|
||||
bind:show={showUserTargets}
|
||||
bind:targetsById={$targetsById}
|
||||
on:update={(e) => {
|
||||
showUserTargets = false;
|
||||
dispatch('addTargets', e.detail);
|
||||
}} />
|
||||
}}>
|
||||
<svelte:fragment slot="description"
|
||||
>Select existing targets to which you want to send this message.</svelte:fragment>
|
||||
</UserTargetsModal>
|
||||
+15
-1
@@ -146,4 +146,18 @@
|
||||
{/if}
|
||||
</Container>
|
||||
|
||||
<UserTargetsModal bind:show={showAdd} bind:targetsById={$targetsById} on:update={addTargets} />
|
||||
<UserTargetsModal
|
||||
title="Select subscribers"
|
||||
bind:show={showAdd}
|
||||
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
|
||||
href="https://appwrite.io/docs/products/messaging/topics"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link">Learn more about subscribers.</a>
|
||||
</p>
|
||||
</svelte:fragment>
|
||||
</UserTargetsModal>
|
||||
@@ -12,10 +12,10 @@
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import ProviderType from './providerType.svelte';
|
||||
|
||||
export let title: string;
|
||||
export let show: boolean;
|
||||
export let targetsById: Record<string, Models.Target>;
|
||||
export let providerType: MessagingProviderType = null;
|
||||
export let title = 'Select subscribers';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
@@ -118,13 +118,8 @@
|
||||
</script>
|
||||
|
||||
<Modal {title} bind:show onSubmit={submit} on:close={reset} size="big" headerDivider={false}>
|
||||
<p class="text">
|
||||
Add subscribers to this topic by selecting the targets for directing messages. <a
|
||||
href="https://appwrite.io/docs/products/messaging/topics"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link">Learn more about subscribers.</a>
|
||||
</p>
|
||||
<slot name="description" />
|
||||
|
||||
<InputSearch
|
||||
autofocus
|
||||
disabled={totalResults === 0 && !search}
|
||||
|
||||
Reference in new issue
Block a user