Skip to content
Snippets Groups Projects

Dynamic brand img url

Merged robinwilliam.hundt requested to merge fix-feedback-correction-comp into master
3 files
+ 18
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -50,7 +50,8 @@
@@ -50,7 +50,8 @@
<v-toolbar-title>
<v-toolbar-title>
<router-link to="/home">
<router-link to="/home">
<v-avatar>
<v-avatar>
<img src="../assets/brand.png">
<img v-if="production" :src="productionBrandUrl"/>
 
<img v-else src="../assets/brand.png"/>
</v-avatar>
</v-avatar>
</router-link>
</router-link>
</v-toolbar-title>
</v-toolbar-title>
@@ -84,6 +85,12 @@
@@ -84,6 +85,12 @@
set: function (collapsed) {
set: function (collapsed) {
this.$store.commit(uiMut.SET_SIDEBAR_COLLAPSED, collapsed)
this.$store.commit(uiMut.SET_SIDEBAR_COLLAPSED, collapsed)
}
}
 
},
 
production () {
 
return process.env.NODE_ENV === 'production'
 
},
 
productionBrandUrl () {
 
return `https://${window.location.host}/static/img/brand.png`
}
}
},
},
methods: {
methods: {
Loading