Skip to content

Commit 7215142

Browse files
committed
fix(App): Allow opening any view in a new tab
see #1833 Signed-off-by: Marcel Klehr <[email protected]>
1 parent 353251f commit 7215142

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

_locales/en/messages.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,5 +818,8 @@
818818
},
819819
"DescriptionAutosync": {
820820
"message": "Turning on automatic sync will make sure a sync run is triggered regularly within a certain configurable interval as well as on demand a few seconds after you make changes. If you don't turn on automatic sync you will need to trigger sync runs manually by pressing the sync button."
821+
},
822+
"LabelOpeninnewtab": {
823+
"message": "Open this view in a new tab"
821824
}
822825
}

src/ui/App.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@
6363
</template>
6464
<span>{{ t('LabelTelemetry') }}</span>
6565
</v-tooltip>
66+
<v-tooltip top>
67+
<template #activator="{ on, attrs }">
68+
<v-btn
69+
x-small
70+
text
71+
class="white--text"
72+
v-bind="attrs"
73+
target="_blank"
74+
@click="openInNewTab"
75+
v-on="on">
76+
<v-icon>mdi-open-in-new</v-icon>
77+
</v-btn>
78+
</template>
79+
<span>{{ t('LabelOpeninnewtab') }}</span>
80+
</v-tooltip>
6681
</v-col>
6782
</v-row>
6883
</v-footer>
@@ -152,6 +167,9 @@ export default {
152167
this.unlockError = e.message
153168
this.key = ''
154169
}
170+
},
171+
openInNewTab() {
172+
window.open(window.location.href, '_blank')
155173
}
156174
}
157175
}

0 commit comments

Comments
 (0)