Skip to content

Commit

Permalink
Display: Fix show page when message has no tags - refs BT#21705
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 11, 2024
1 parent 6da6497 commit 1025d1d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions assets/css/scss/_messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
@apply flex justify-end gap-2 items-center;
}

&__tags {
@apply flex gap-2;
}

&__tag-searcher.field {
@apply mb-0;
}
Expand Down
21 changes: 13 additions & 8 deletions assets/vue/views/message/MessageShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@
</SectionHeader>

<div class="message-show__tags-container">
<BaseChip
v-for="tag in myReceiver.tags"
:key="tag['@id']"
:value="tag"
is-removable
label-field="tag"
@remove="onRemoveTagFromMessage(tag)"
/>
<div
v-if="myReceiver"
class="message-show__tags"
>
<BaseChip
v-for="tag in myReceiver.tags"
:key="tag['@id']"
:value="tag"
is-removable
label-field="tag"
@remove="onRemoveTagFromMessage(tag)"
/>
</div>

<BaseAutocomplete
v-if="item.sender && item.sender['@id'] !== securityStore.user['@id']"
Expand Down

0 comments on commit 1025d1d

Please sign in to comment.