Skip to content

Commit 62e405d

Browse files
committed
Rename valid links map in the list view
1 parent 893773c commit 62e405d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/components/view/ListView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
<router-link :to="{ path: getVmRouteUsingType(record) + record.virtualmachineid }">{{ text }}</router-link>
168168
</template>
169169
<template v-if="column.key === 'volumename'">
170-
<router-link v-if="validLinks[record.id]?.volume" :to="{ path: '/volume/' + record.volumeid }">{{ text }}</router-link>
170+
<router-link v-if="resourceIdToValidLinksMap[record.id]?.volume" :to="{ path: '/volume/' + record.volumeid }">{{ text }}</router-link>
171171
<span v-else>{{ text }}</span>
172172
</template>
173173
<template v-if="column.key === 'size'">
@@ -579,7 +579,7 @@ export default {
579579
disable: 'storageallocateddisablethreshold'
580580
}
581581
},
582-
validLinks: {}
582+
resourceIdToValidLinksMap: {}
583583
}
584584
},
585585
watch: {
@@ -588,7 +588,7 @@ export default {
588588
handler (newData, oldData) {
589589
if (newData === oldData) return
590590
this.items.forEach(record => {
591-
this.validLinks[record.id] = validateLinks(this.$router, false, record)
591+
this.resourceIdToValidLinksMap[record.id] = validateLinks(this.$router, false, record)
592592
})
593593
}
594594
}

0 commit comments

Comments
 (0)