Skip to content

Commit

Permalink
changing to router mode history to hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Jan 29, 2024
1 parent ad37603 commit d2805bb
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,56 +173,56 @@ export default {
this.isSubscribed = isSubscribed;
})
if(this.authToken && !window.location.pathname.includes("/form")){
if(this.authToken && !window.location.hash.includes("/form")){
this.$store.dispatch('getApps',this.authToken);
this.$store.dispatch('getTeammates',this.authToken);
}
eventBus.$on("UpdateThemeEvent", (themeData) => {
Object.assign(this.themeData, { ...themeData })
this.isForm = window.location.pathname.includes("/form") ? true : false
this.isForm = window.location.hash.includes("/form") ? true : false
})
if(this.$route.meta.admin){
this.showNavbar =
window.location.pathname.includes("/admin/participants") ||
window.location.pathname.includes("/admin/events") ||
window.location.pathname.includes("/admin/dashboard") ||
window.location.pathname.includes("/admin/subscription") ||
window.location.pathname.includes("/admin/teams") ||
window.location.pathname.includes("/admin/setting/org") ||
window.location.pathname.includes("/admin/createapp") ||
window.location.pathname.includes("/admin/marketplace") ?
window.location.hash.includes("/admin/participants") ||
window.location.hash.includes("/admin/events") ||
window.location.hash.includes("/admin/dashboard") ||
window.location.hash.includes("/admin/subscription") ||
window.location.hash.includes("/admin/teams") ||
window.location.hash.includes("/admin/setting/org") ||
window.location.hash.includes("/admin/createapp") ||
window.location.hash.includes("/admin/marketplace") ?
true :
false;
}else{
this.showUserNav = window.location.pathname.includes("/form") || window.location.pathname.includes('/auth/google') ||
window.location.pathname.includes("/user") || window.location.pathname.includes("/sa/home")?true : false
this.isForm= window.location.pathname.includes("/form")? true:false
this.showUserNav = window.location.hash.includes("/form") || window.location.hash.includes('/auth/google') ||
window.location.hash.includes("/user") || window.location.hash.includes("/sa/home")?true : false
this.isForm= window.location.hash.includes("/form")? true:false
}
},
updated() {
this.showNavbar =
window.location.pathname.includes("/admin/participants") ||
window.location.pathname.includes("/admin/events") ||
window.location.pathname.includes("/admin/dashboard") ||
window.location.pathname.includes("/admin/subscription") ||
window.location.pathname.includes("/admin/teams") ||
window.location.pathname.includes("/admin/setting/org") ||
window.location.pathname.includes("/admin/createapp") ||
window.location.pathname.includes("/admin/marketplace") ?
window.location.hash.includes("/admin/participants") ||
window.location.hash.includes("/admin/events") ||
window.location.hash.includes("/admin/dashboard") ||
window.location.hash.includes("/admin/subscription") ||
window.location.hash.includes("/admin/teams") ||
window.location.hash.includes("/admin/setting/org") ||
window.location.hash.includes("/admin/createapp") ||
window.location.hash.includes("/admin/marketplace") ?
true :
false;
this.showChat =
window.location.pathname.includes("/admin/participants") ||
window.location.pathname.includes("/admin/events") ||
window.location.pathname.includes("/admin/dashboard") ||
window.location.pathname.includes("/admin/subscription") ||
window.location.pathname.includes("/admin/teams") ||
window.location.pathname.includes("/admin/setting/org") ||
window.location.pathname.includes("/admin/createapp") ||
window.location.pathname.includes("/admin/marketplace") ?
window.location.hash.includes("/admin/participants") ||
window.location.hash.includes("/admin/events") ||
window.location.hash.includes("/admin/dashboard") ||
window.location.hash.includes("/admin/subscription") ||
window.location.hash.includes("/admin/teams") ||
window.location.hash.includes("/admin/setting/org") ||
window.location.hash.includes("/admin/createapp") ||
window.location.hash.includes("/admin/marketplace") ?
true :
false;
this.showUserNav = window.location.pathname.includes("/admin") || window.location.pathname.includes("/auth/google")?false : true
this.showUserNav = window.location.hash.includes("/admin") || window.location.hash.includes("/auth/google")?false : true
},
methods: {
Expand Down Expand Up @@ -260,13 +260,13 @@ export default {
},
onItemClick() {
if (
window.location.pathname.includes("investors") ||
window.location.pathname.includes("project") ||
window.location.pathname.includes("dashboard") ||
window.location.pathname.includes("/admin/subscription")||
window.location.pathname.includes("/admin/teams") ||
window.location.pathname.includes("/admin/createapp") ||
window.location.pathname.includes("/admin/marketplace")
window.location.hash.includes("investors") ||
window.location.hash.includes("project") ||
window.location.hash.includes("dashboard") ||
window.location.hash.includes("/admin/subscription")||
window.location.hash.includes("/admin/teams") ||
window.location.hash.includes("/admin/createapp") ||
window.location.hash.includes("/admin/marketplace")
) {
this.showNavbar = true;
} else {
Expand Down

0 comments on commit d2805bb

Please sign in to comment.