Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Jan 29, 2024
1 parent ef37e3a commit afb279c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 38 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.hash.includes("/form")){
if(this.authToken && !window.location.pathname.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.hash.includes("/form") ? true : false
this.isForm = window.location.pathname.includes("/form") ? true : false
})
if(this.$route.meta.admin){
this.showNavbar =
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") ?
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") ?
true :
false;
}else{
this.showUserNav = window.location.hash.includes("/form") || window.location.pathname.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
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
}
},
updated() {
this.showNavbar =
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") ?
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") ?
true :
false;
this.showChat =
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") ?
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") ?
true :
false;
this.showUserNav = window.location.hash.includes("/admin") || window.location.pathname.includes("/auth/google")?false : true
this.showUserNav = window.location.pathname.includes("/admin") || window.location.pathname.includes("/auth/google")?false : true
},
methods: {
Expand Down Expand Up @@ -260,13 +260,13 @@ export default {
},
onItemClick() {
if (
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")
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")
) {
this.showNavbar = true;
} else {
Expand Down
3 changes: 2 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Auth from './components/login/Auth'
Vue.use(Router);

const router = new Router({
mode: "hash",
mode: "history",
routes: [{
path: "/form/:slug",
name: "Event",
Expand Down Expand Up @@ -50,6 +50,7 @@ const router = new Router({
component: () =>
import ( /* webpackChunkName: "adminLogin" */ "./views/Invitation.vue"),
},

{
path:'/auth/google',
component:Auth
Expand Down

0 comments on commit afb279c

Please sign in to comment.