From 77f6b3dfd69d1ae0ecf3324bf5cebf3539ad55ce Mon Sep 17 00:00:00 2001 From: Oleg Solodkov <94829167+sol-0@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:33:22 +0700 Subject: [PATCH] [UBER-782] Added disabled parameter to DM presenter (#3620) Signed-off-by: Oleg Solodkov --- plugins/chunter-resources/src/components/DmPresenter.svelte | 4 +++- .../src/components/activity/TxBacklinkReference.svelte | 2 +- .../src/components/NotificationView.svelte | 2 +- .../src/components/PeopleNotificationsView.svelte | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/chunter-resources/src/components/DmPresenter.svelte b/plugins/chunter-resources/src/components/DmPresenter.svelte index 60023962ac..c69bd41cd5 100644 --- a/plugins/chunter-resources/src/components/DmPresenter.svelte +++ b/plugins/chunter-resources/src/components/DmPresenter.svelte @@ -21,6 +21,8 @@ import { getDmName } from '../utils' export let value: DirectMessage + export let disabled = false + const client = getClient() $: icon = client.getHierarchy().getClass(value._class).icon @@ -28,7 +30,7 @@ {#if value} {#await getDmName(client, value) then name} - +
{#if icon} diff --git a/plugins/chunter-resources/src/components/activity/TxBacklinkReference.svelte b/plugins/chunter-resources/src/components/activity/TxBacklinkReference.svelte index bb0aca72ca..e3541ea62c 100644 --- a/plugins/chunter-resources/src/components/activity/TxBacklinkReference.svelte +++ b/plugins/chunter-resources/src/components/activity/TxBacklinkReference.svelte @@ -50,6 +50,6 @@ {#if presenter} - + {/if} diff --git a/plugins/notification-resources/src/components/NotificationView.svelte b/plugins/notification-resources/src/components/NotificationView.svelte index 2d56231477..06a2e1daf8 100644 --- a/plugins/notification-resources/src/components/NotificationView.svelte +++ b/plugins/notification-resources/src/components/NotificationView.svelte @@ -96,7 +96,7 @@ >
{#if presenter} - + {/if} {#if newTxes > 0 && !selected}
{newTxes}
diff --git a/plugins/notification-resources/src/components/PeopleNotificationsView.svelte b/plugins/notification-resources/src/components/PeopleNotificationsView.svelte index 6f83bd8532..80d0b1412f 100644 --- a/plugins/notification-resources/src/components/PeopleNotificationsView.svelte +++ b/plugins/notification-resources/src/components/PeopleNotificationsView.svelte @@ -111,7 +111,7 @@
{#if presenter} - + {/if}