Fixing logging overview broken links

Link formatter had the way options were
expected changed which broke the existing links.

I also fixed a missing 'row' warning.

rancher/dashboard#1422
This commit is contained in:
Cody Jackson 2020-09-28 10:09:01 -07:00
parent ace85bfe9d
commit a3e80cbf5c
3 changed files with 24 additions and 14 deletions

View File

@ -4,10 +4,18 @@ import Link from './Link';
export default {
components: { Link },
props: {
row: {
type: Object,
required: true,
},
value: {
type: Array,
default: () => []
}
},
options: {
type: [Object, String],
default: null,
},
},
};
</script>
@ -15,7 +23,7 @@ export default {
<template>
<span>
<span v-for="(el, i) in value" :key="el.key">
<Link :value="el" /><span v-if="i != value.length - 1">, </span>
<Link :row="row" :value="el" :options="options" /><span v-if="i != value.length - 1">, </span>
</span>
</span>
</template>

View File

@ -52,24 +52,27 @@ export const EFFECT = {
};
export const FLOW = {
name: 'flow',
labelKey: 'tableHeaders.flow',
value: 'flow',
sort: ['flow.name'],
formatter: 'Link'
name: 'flow',
labelKey: 'tableHeaders.flow',
value: 'flow',
sort: ['flow.name'],
formatter: 'Link',
formatterOpts: { options: 'internal' },
};
export const CLUSTER_FLOW = {
...FLOW,
labelKey: 'tableHeaders.clusterFlow'
labelKey: 'tableHeaders.clusterFlow',
formatterOpts: { options: 'internal' },
};
export const OUTPUT = {
name: 'output',
labelKey: 'tableHeaders.output',
value: 'outputs',
sort: 'outputs.text',
formatter: 'ListLink'
name: 'output',
labelKey: 'tableHeaders.output',
value: 'outputs',
sort: 'outputs.text',
formatter: 'ListLink',
formatterOpts: { options: 'internal' },
};
export const CONFIGURED_PROVIDERS = {

View File

@ -63,7 +63,6 @@ export default {
return {
text: resource.nameDisplay,
url: resource.detailLocation,
options: 'internal',
...resource
};
}