iceteabottle commented on a change in pull request #7: [WIP] Feature/vm wizard
URL: https://github.com/apache/cloudstack-primate/pull/7#discussion_r361663839
##########
File path: src/components/view/InfoCard.vue
##########
@@ -302,10 +302,19 @@
<a-icon type="rocket" />
<router-link :to="{ path: '/managementserver/' +
resource.managementserverid }">{{ resource.managementserver ||
resource.managementserverid }}</router-link>
</div>
-
<div class="resource-detail-item" v-if="resource.created">
<a-icon type="calendar" />{{ resource.created }}
</div>
+ <div class="resource-detail-item" v-if="resource.affinitygroup &&
resource.affinitygroup.length > 0">
+ <a-icon type="swap" />
+ <span
+ v-for="(group, index) in resource.affinitygroup"
+ :key="group.id"
+ >
+ <router-link :to="{ path: '/affinitygroup/' + group.id }">{{
group.name }}</router-link>
+ <span v-if="index + 1 < resource.affinitygroup.length">, </span>
Review comment:
I think that's not the smartest way to display the list of affinity groups.
Maybe we can change this later. I would prefer to focus on the wizard and
adjust the info card later. Or do you have a suggestion, @rhtyd ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services