mirror of https://github.com/Lissy93/dashy.git
🐛 Open in workspace when target set, Fixes #143
This commit is contained in:
parent
e031e0246d
commit
c8df328178
|
@ -3,7 +3,7 @@
|
||||||
<a @click="itemOpened"
|
<a @click="itemOpened"
|
||||||
@mouseup.right="openContextMenu"
|
@mouseup.right="openContextMenu"
|
||||||
@contextmenu.prevent
|
@contextmenu.prevent
|
||||||
:href="target !== 'modal' ? url : '#'"
|
:href="(target !== 'modal' && target !== 'workspace') ? url : '#'"
|
||||||
:target="target === 'newtab' ? '_blank' : ''"
|
:target="target === 'newtab' ? '_blank' : ''"
|
||||||
:class="`item ${!icon? 'short': ''} size-${itemSize}`"
|
:class="`item ${!icon? 'short': ''} size-${itemSize}`"
|
||||||
v-tooltip="getTooltipOptions()"
|
v-tooltip="getTooltipOptions()"
|
||||||
|
@ -100,6 +100,8 @@ export default {
|
||||||
if (e.altKey || this.target === 'modal') {
|
if (e.altKey || this.target === 'modal') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.$emit('triggerModal', this.url);
|
this.$emit('triggerModal', this.url);
|
||||||
|
} else if (this.target === 'workspace') {
|
||||||
|
router.push({ name: 'workspace', query: { url: this.url } });
|
||||||
} else {
|
} else {
|
||||||
this.$emit('itemClicked');
|
this.$emit('itemClicked');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue