Skip to content

Commit

Permalink
Merge pull request #1467 from hypersign-protocol/issues#1458
Browse files Browse the repository at this point in the history
home page issues of theme color fixed
  • Loading branch information
Vishwas1 authored Jul 17, 2022
2 parents fa15713 + 5418ffb commit bfabaa0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div id="app">
<NavBar :title="name" :show="showUserNav" :themeData="themeData" />
<NavBar :title="name" :show="showUserNav" :themeData="themeData" :isForm="isForm" />
<!-- <NavBar title="Fyre" :show="showUserNav" /> -->

<!-- <div :class="[
Expand Down Expand Up @@ -153,7 +153,8 @@ export default {
// Nav for user's end
showUserNav: false,
showChat:false
showChat:false,
isForm:false,
};
},
Expand Down Expand Up @@ -182,6 +183,7 @@ export default {
}else{
this.showUserNav = window.location.pathname.includes("/form") ||
window.location.pathname.includes("/user") || window.location.pathname.includes("/sa/home")?true : false
this.isForm= window.location.pathname.includes("/form")? true:false
}
},
updated() {
Expand Down
11 changes: 9 additions & 2 deletions src/components/participant/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ color: white !important;
<template #button-content>
<b-icon style="color:white" icon="menu-button-wide"></b-icon>
</template>
<b-dropdown-item to="/user/home/">
<b-dropdown-item to="/user/home/" @click="updateIsForm">
Home
</b-dropdown-item>
<b-dropdown-item @click="logout" v-if="authToken != '' && authToken != null">
Expand All @@ -48,12 +48,16 @@ export default {
themeData: {
required: true,
type:Object
},
isForm:{
required: true,
type: Boolean
}
},
computed: {
themeCss(){
return{
'--theme-bg-color': this.themeData.themeColor ? this.themeData.themeColor : config.app.themeBgColor
'--theme-bg-color': (this.themeData.themeColor && this.isForm) ? this.themeData.themeColor : config.app.themeBgColor
}
}
},
Expand All @@ -74,6 +78,9 @@ export default {
logout() {
localStorage.clear();
this.$router.go()
},
updateIsForm() {
this.isForm= false
}
}
}
Expand Down

0 comments on commit bfabaa0

Please sign in to comment.