We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5810db commit 47c0808Copy full SHA for 47c0808
src/components/Panels/Shared/HelpButton.vue
@@ -13,21 +13,23 @@
13
14
<script lang="ts" setup>
15
import { isTauri } from '@tauri-apps/api/core'
16
+import { computed } from 'vue'
17
18
const props = defineProps({
19
obj: { type: Object, default: undefined },
20
})
21
-const helplink = props.obj?.helplink
22
+const helplink = computed(() => props.obj?.helplink)
23
24
async function helpButtonClick() {
- if (!helplink) return
25
+ const link = helplink.value
26
+ if (!link) return
27
28
if (await isTauri()) {
29
const { open } = await import('@tauri-apps/plugin-shell')
- await open(helplink)
30
+ await open(link)
31
} else {
- window.open(helplink, '_blank')
32
+ window.open(link, '_blank')
33
}
34
35
</script>
0 commit comments