UI: Show error notification if user clicks on file: link

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-08-17 14:26:00 +02:00
parent b620e75b51
commit 476ab6a33c
1 changed files with 3 additions and 0 deletions

View File

@ -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() {