Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:bug: Open in workspace when target set, Fixes #143

Alicia Sykesc8df32817801
diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue
index 7234c1fd..f4a433c6 100644
--- a/src/components/LinkItems/Item.vue
+++ b/src/components/LinkItems/Item.vue
@@ -3,7 +3,7 @@
<a @click="itemOpened"
@mouseup.right="openContextMenu"
@contextmenu.prevent
- :href="target !== 'modal' ? url : '#'"
+ :href="(target !== 'modal' && target !== 'workspace') ? url : '#'"
:target="target === 'newtab' ? '_blank' : ''"
:class="`item ${!icon? 'short': ''} size-${itemSize}`"
v-tooltip="getTooltipOptions()"
@@ -100,6 +100,8 @@ export default {
if (e.altKey || this.target === 'modal') {
e.preventDefault();
this.$emit('triggerModal', this.url);
+ } else if (this.target === 'workspace') {
+ router.push({ name: 'workspace', query: { url: this.url } });
} else {
this.$emit('itemClicked');
}