This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new d2fe459  Adding ostypename to vm detailview (#723)
d2fe459 is described below

commit d2fe459059fde5438e14a91eccbd417120dffcea
Author: davidjumani <[email protected]>
AuthorDate: Fri Sep 18 18:16:10 2020 +0530

    Adding ostypename to vm detailview (#723)
---
 src/components/view/InfoCard.vue  | 2 +-
 src/components/widgets/OsLogo.vue | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/view/InfoCard.vue b/src/components/view/InfoCard.vue
index 7174166..a49e710 100644
--- a/src/components/view/InfoCard.vue
+++ b/src/components/view/InfoCard.vue
@@ -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>
diff --git a/src/components/widgets/OsLogo.vue 
b/src/components/widgets/OsLogo.vue
index c2e51b7..edbb3a4 100644
--- a/src/components/widgets/OsLogo.vue
+++ b/src/components/widgets/OsLogo.vue
@@ -117,6 +117,7 @@ export default {
       } else {
         this.osLogo = 'linux'
       }
+      this.$emit('update-osname', this.name)
     }
   }
 }

Reply via email to