Client side or purge room

Redirect to "goodbye" view. Issue #118.
This commit is contained in:
N-Pex 2021-07-05 18:16:21 +02:00
parent e324355b63
commit d39357401b
8 changed files with 193 additions and 60 deletions

View file

@ -74,6 +74,7 @@ const routes = [
path: '/goodbye',
name: 'Goodbye',
component: () => import('../components/QuoteView.vue'),
props: true
}
]
@ -82,7 +83,7 @@ const router = new VueRouter({
});
router.beforeEach((to, from, next) => {
const publicPages = ['/login','/createroom'];
const publicPages = ['/login', '/createroom'];
var authRequired = !publicPages.includes(to.path);
const loggedIn = router.app.$store.state.auth.user;
@ -113,7 +114,7 @@ router.beforeEach((to, from, next) => {
}
});
router.getRoomLink = function(roomId) {
router.getRoomLink = function (roomId) {
return window.location.origin + window.location.pathname + "#/room/" + encodeURIComponent(util.sanitizeRoomId(roomId));
}