File tree Expand file tree Collapse file tree
webui/src/components/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useRoute } from 'vue-router'
55import SourceView from ' ./SourceView.vue'
66import { usePrettyLanguage } from ' @/composables/usePrettyLanguage'
77import { usePrettyText } from ' @/composables/usePrettyText'
8+ import { getRouteName } from ' @/composables/dashboard'
89
910defineProps ({
1011 actions: { type: Object as PropType <Action []>, required: true },
@@ -155,7 +156,7 @@ function getStatus(action: Action) {
155156 <tr >
156157 <td >{{ key }}</td >
157158 <td >
158- <router-link v-if =" key === 'file' && action.tags.fileKey" :to =" { name: 'config', params: { id: action.tags.fileKey }, query: { refresh: route.query.refresh } }" >
159+ <router-link v-if =" key === 'file' && action.tags.fileKey" :to =" { name: getRouteName( 'config').value , params: { id: action.tags.fileKey } }" >
159160 {{ value }}
160161 </router-link >
161162 <span v-else >{{ value }}</span >
Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ import { useRoute } from 'vue-router'
55import dayjs from ' dayjs'
66import duration from ' dayjs/plugin/duration'
77import { usePrettyText } from ' @/composables/usePrettyText'
8- import { useDashboard } from ' @/composables/dashboard'
8+ import { getRouteName , useDashboard } from ' @/composables/dashboard'
99
1010const { dashboard } = useDashboard ()
1111const { events, close } = dashboard .value .getEvents (' job' )
1212const { format, duration : prettyDuration } = usePrettyDates ()
1313const { parseUrls } = usePrettyText ()
14- const route = useRoute ()
1514dayjs .extend (duration )
1615
1716const now = ref (dayjs ())
@@ -199,7 +198,7 @@ function getStatus(data: JobExecution) {
199198 <tr >
200199 <td >{{ key }}</td >
201200 <td >
202- <router-link v-if =" key === 'file' && data.tags.fileKey" :to =" { name: 'config', params: { id: data.tags.fileKey }, query: { refresh: route.query.refresh } }" >
201+ <router-link v-if =" key === 'file' && data.tags.fileKey" :to =" { name: getRouteName( 'config').value , params: { id: data.tags.fileKey } }" >
203202 {{ value }}
204203 </router-link >
205204 <span v-else >{{ value }}</span >
You can’t perform that action at this time.
0 commit comments