mirror of https://github.com/rancher/dashboard.git
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:
parent
ace85bfe9d
commit
a3e80cbf5c
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ export default {
|
|||
return {
|
||||
text: resource.nameDisplay,
|
||||
url: resource.detailLocation,
|
||||
options: 'internal',
|
||||
...resource
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue