diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-03-21 10:30:29 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 10:30:29 -0100 |
commit | 17b7b5a8c14e0483ca2aeed17047e8b4cc1260d6 (patch) | |
tree | e7e5a70b93fc3aa3aa6b78217a13d538871dbb91 | |
parent | dc55d5ef125ea586d828e3f1a672170063d3caa7 (diff) | |
parent | 3f133cb6a1d5de311d1d8a8de301cd50ed64d666 (diff) |
Merge pull request #1689 from nextcloud/artonge/fix/handle_unknown_visibility
Handle unknown visibility
-rw-r--r-- | src/components/TimelinePost.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index 8adfaf58..ade9c221 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -14,8 +14,9 @@ </span> </router-link> </div> - <div class="post-visibility" - :class="{ [visibility?.icon ?? '']: true }" + <div v-if="visibility" + class="post-visibility" + :class="{ [visibility.icon]: true }" :title="visibility.text" /> <a :data-timestamp="timestamp" class="post-timestamp live-relative-timestamp" |