From 6ea35f086f23a48eece16820ad713910745448f1 Mon Sep 17 00:00:00 2001 From: Olivier Bourgain Date: Wed, 20 Mar 2024 20:56:18 +0100 Subject: [PATCH] Add open in new tab link --- frontend/src/components/files/ListingItem.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/components/files/ListingItem.vue b/frontend/src/components/files/ListingItem.vue index f7733b87..62b2de1e 100644 --- a/frontend/src/components/files/ListingItem.vue +++ b/frontend/src/components/files/ListingItem.vue @@ -30,6 +30,10 @@

+ + + open in new tab + @@ -249,6 +253,10 @@ export default { open: function () { this.$router.push({ path: this.url }); }, + openInNewTab: function () { + const routeUrl = this.$router.resolve({path: this.url}); + window.open(routeUrl.href, '_blank'); + }, }, };