mirror of https://github.com/nextcloud/bookmarks
UI: Show error notification if user clicks on file: link
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
b620e75b51
commit
476ab6a33c
|
@ -253,6 +253,9 @@ export default {
|
|||
}
|
||||
},
|
||||
onClick() {
|
||||
if (this.bookmark.url.startsWith('file:')) {
|
||||
this.$store.commit(mutations.SET_ERROR, 'Most browsers will not allow clicking on file links. Try copying the URL')
|
||||
}
|
||||
this.$store.dispatch(actions.CLICK_BOOKMARK, this.bookmark)
|
||||
},
|
||||
onCopyUrl() {
|
||||
|
|
Loading…
Reference in New Issue