mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: Incorrect column key specified in secondary store column filter (#6275)
This commit is contained in:
parent
976464ccb9
commit
14dd467a43
@ -283,7 +283,7 @@
|
|||||||
<router-link v-if="record.roleid && $router.resolve('/role/' + record.roleid).matched[0].redirect !== '/exception/404'" :to="{ path: '/role/' + record.roleid }">{{ text }}</router-link>
|
<router-link v-if="record.roleid && $router.resolve('/role/' + record.roleid).matched[0].redirect !== '/exception/404'" :to="{ path: '/role/' + record.roleid }">{{ text }}</router-link>
|
||||||
<span v-else>{{ text }}</span>
|
<span v-else>{{ text }}</span>
|
||||||
</template>
|
</template>
|
||||||
<template #readonly="{ record }">
|
<template #access="{ record }">
|
||||||
<status :text="record.readonly ? 'ReadOnly' : 'ReadWrite'" displayText />
|
<status :text="record.readonly ? 'ReadOnly' : 'ReadWrite'" displayText />
|
||||||
</template>
|
</template>
|
||||||
<template #requiresupgrade="{ record }">
|
<template #requiresupgrade="{ record }">
|
||||||
@ -764,7 +764,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getColumnKey (name) {
|
getColumnKey (name) {
|
||||||
if (typeof name === 'object') {
|
if (typeof name === 'object') {
|
||||||
name = Object.keys(name)[0]
|
name = Object.keys(name).includes('customTitle') ? name.customTitle : name.field
|
||||||
}
|
}
|
||||||
return name
|
return name
|
||||||
},
|
},
|
||||||
|
|||||||
@ -805,7 +805,7 @@ export default {
|
|||||||
let title = columnKey
|
let title = columnKey
|
||||||
if (typeof columnKey === 'object') {
|
if (typeof columnKey === 'object') {
|
||||||
if ('customTitle' in columnKey && 'field' in columnKey) {
|
if ('customTitle' in columnKey && 'field' in columnKey) {
|
||||||
key = columnKey.field
|
key = columnKey.customTitle
|
||||||
title = columnKey.customTitle
|
title = columnKey.customTitle
|
||||||
customRender[key] = columnKey[key]
|
customRender[key] = columnKey[key]
|
||||||
} else {
|
} else {
|
||||||
@ -1455,7 +1455,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getColumnKey (name) {
|
getColumnKey (name) {
|
||||||
if (typeof name === 'object') {
|
if (typeof name === 'object') {
|
||||||
name = Object.keys(name)[0]
|
name = Object.keys(name).includes('customTitle') ? name.customTitle : name.field
|
||||||
}
|
}
|
||||||
return name
|
return name
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user