Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit 124e74f

Browse files
yadvrustcweizhou
authored andcommitted
infocard: show project for resources having a projectid
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 25aec26 commit 124e74f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/view/InfoCard.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@
285285
<span v-else>{{ resource.ipaddress }}</span>
286286
</div>
287287
</div>
288+
<div class="resource-detail-item" v-if="resource.projectid">
289+
<div class="resource-detail-item__label">{{ $t('label.project') }}</div>
290+
<div class="resource-detail-item__details">
291+
<a-icon type="project" />
292+
<router-link :to="{ path: '/project/' + resource.projectid }">{{ resource.project || resource.projectname || resource.projectid }}</router-link>
293+
</div>
294+
</div>
288295

289296
<div class="resource-detail-item">
290297
<slot name="details">

0 commit comments

Comments
 (0)