From 40c1d33fa35f37862797882530bf81ed187609d1 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 29 Nov 2021 18:32:46 +0700 Subject: [PATCH] Chunter fixes (#419) Signed-off-by: Andrey Sobolev --- plugins/chunter-assets/lang/en.json | 7 ++++ .../src/components/CommentPresenter.svelte | 33 +++---------------- .../src/components/CreateChannel.svelte | 33 ++++++++++--------- .../src/components/Message.svelte | 27 +++++++++------ plugins/chunter-resources/src/utils.ts | 25 ++++++++++++++ 5 files changed, 70 insertions(+), 55 deletions(-) create mode 100644 plugins/chunter-resources/src/utils.ts diff --git a/plugins/chunter-assets/lang/en.json b/plugins/chunter-assets/lang/en.json index 769939c51c..d475bd5695 100644 --- a/plugins/chunter-assets/lang/en.json +++ b/plugins/chunter-assets/lang/en.json @@ -3,6 +3,13 @@ "ApplicationLabelChunter": "Chat", "LeftComment": "left a comment", "AddAttachment": "uploaded an attachment", + "Channels": "Channels", + "CreateChannel": "New Channel", + "ChannelName": "Name", + "ChannelDescription": "Description", + "MakePrivate": "Make private", + "MakePrivateDescription": "Only members can see it", + "Channel": "Channel", "EditUpdate": "Save...", "EditCancel": "Cancel" } diff --git a/plugins/chunter-resources/src/components/CommentPresenter.svelte b/plugins/chunter-resources/src/components/CommentPresenter.svelte index 7f880d4abc..ca42d10c0d 100644 --- a/plugins/chunter-resources/src/components/CommentPresenter.svelte +++ b/plugins/chunter-resources/src/components/CommentPresenter.svelte @@ -15,46 +15,21 @@ -->
- {#await getUser(value.modifiedBy) then user} + {#await getUser(client, value.modifiedBy) then user} {#if user}{formatName(user.name)}{/if} {/await} {getTime(value.modifiedOn)} diff --git a/plugins/chunter-resources/src/components/CreateChannel.svelte b/plugins/chunter-resources/src/components/CreateChannel.svelte index 0a7084c698..29798892a2 100644 --- a/plugins/chunter-resources/src/components/CreateChannel.svelte +++ b/plugins/chunter-resources/src/components/CreateChannel.svelte @@ -15,39 +15,40 @@ - { dispatch('close') }}> - - -