mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 17:40:09 +00:00
29 lines
639 B
Vue
29 lines
639 B
Vue
<template>
|
|
<Button
|
|
@click="openGitHubIssues"
|
|
:label="$t('g.findIssues')"
|
|
severity="secondary"
|
|
icon="pi pi-github"
|
|
>
|
|
</Button>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Button from 'primevue/button'
|
|
import { computed } from 'vue'
|
|
|
|
const props = defineProps<{
|
|
errorMessage: string
|
|
repoOwner: string
|
|
repoName: string
|
|
}>()
|
|
|
|
const queryString = computed(() => props.errorMessage + ' is:issue')
|
|
|
|
const openGitHubIssues = () => {
|
|
const query = encodeURIComponent(queryString.value)
|
|
const url = `https://github.com/${props.repoOwner}/${props.repoName}/issues?q=${query}`
|
|
window.open(url, '_blank')
|
|
}
|
|
</script>
|