Adding ostypename to vm detailview (#723)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
davidjumani 2020-09-18 18:16:10 +05:30 committed by Rohit Yadav
parent 69bc56af65
commit 8a06e9accc
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<div class="resource-details__name">
<div class="avatar">
<slot name="avatar">
<os-logo v-if="resource.ostypeid || resource.ostypename" :osId="resource.ostypeid" :osName="resource.ostypename" size="4x" />
<os-logo v-if="resource.ostypeid || resource.ostypename" :osId="resource.ostypeid" :osName="resource.ostypename" size="4x" @update-osname="(name) => this.resource.ostypename = name"/>
<a-icon v-else-if="typeof $route.meta.icon ==='string'" style="font-size: 36px" :type="$route.meta.icon" />
<a-icon v-else style="font-size: 36px" :component="$route.meta.icon" />
</slot>

View File

@ -117,6 +117,7 @@ export default {
} else {
this.osLogo = 'linux'
}
this.$emit('update-osname', this.name)
}
}
}