diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-02-01 13:06:50 +0100 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-02-02 12:49:10 +0100 |
commit | befea257ba96ab7757f0d56040fb2932896225e8 (patch) | |
tree | ee09b2f1d8f28a138719862438ba51e35174a15f | |
parent | e1c4501d4d390ed3db4811835fc890d4ee539774 (diff) |
feat(federation): show icon in LeftSidebar next to the federated conversations
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/components/LeftSidebar/ConversationsList/Conversation.vue | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.vue b/src/components/LeftSidebar/ConversationsList/Conversation.vue index 62306a6e3..8a6b72aba 100644 --- a/src/components/LeftSidebar/ConversationsList/Conversation.vue +++ b/src/components/LeftSidebar/ConversationsList/Conversation.vue @@ -46,8 +46,9 @@ {{ conversationInformation }} </template> </template> - <template v-if="isPublic || isGroup" #details> - <LinkIcon v-if="isPublic" :size="16" /> + <template v-if="isFederated || isPublic || isGroup" #details> + <WebIcon v-if="isFederated" :size="16" /> + <LinkIcon v-else-if="isPublic" :size="16" /> <AccountMultipleIcon v-else-if="isGroup" :size="16" /> </template> <template v-if="!isSearchResult" #actions> @@ -149,6 +150,7 @@ import EyeOffOutline from 'vue-material-design-icons/EyeOffOutline.vue' import EyeOutline from 'vue-material-design-icons/EyeOutline.vue' import LinkIcon from 'vue-material-design-icons/Link.vue' import Star from 'vue-material-design-icons/Star.vue' +import WebIcon from 'vue-material-design-icons/Web.vue' import { showError } from '@nextcloud/dialogs' import { emit } from '@nextcloud/event-bus' @@ -183,6 +185,7 @@ export default { EyeOutline, LinkIcon, Star, + WebIcon, }, props: { @@ -239,6 +242,10 @@ export default { return this.item.participantType !== PARTICIPANT.TYPE.USER_SELF_JOINED }, + isFederated() { + return !!this.item.remoteServer + }, + isPublic() { return this.item.type === CONVERSATION.TYPE.PUBLIC }, |