Skip to content

Commit

Permalink
Merge pull request #6955 from owncloud/remove-link-from-share-notific…
Browse files Browse the repository at this point in the history
…ation

Remove private links from share notifications
  • Loading branch information
JammingBen authored May 12, 2022
2 parents 9c9ef2c + 42c113a commit 66ce764
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Remove private links from share notifications

We've removed private links from share notifications because those were not working and also not needed.

https://github.com/owncloud/web/pull/6955
https://github.com/owncloud/web/issues/5227
5 changes: 4 additions & 1 deletion packages/web-runtime/src/components/Topbar/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<h4 v-text="el.subject" />
<p v-if="el.message" class="oc-text-small">{{ el.message }}</p>
<p>
<a v-if="el.link" :href="el.link" target="_blank">{{ el.link }}</a>
<a v-if="shouldDisplayLink(el)" :href="el.link" target="_blank">{{ el.link }}</a>
</p>
<div class="oc-width-1-1 oc-flex-right">
<template v-if="el.actions.length !== 0">
Expand Down Expand Up @@ -106,6 +106,9 @@ export default {
status: 'danger'
})
})
},
shouldDisplayLink(notification) {
return notification.link && notification.object_type !== 'local_share'
}
}
}
Expand Down

0 comments on commit 66ce764

Please sign in to comment.