Link back and front all get #115

Merged
tonitch merged 40 commits from wal/front/listingUsers into master 2024-03-18 20:20:37 +01:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 3762750968 - Show all commits

View File

@ -15,11 +15,10 @@ window.onhashchange = function() {
const Logged = ref(isLogged());
window.addEventListener('hashchange', () => {
if((location.hash === "#/home" && prevURL === "#/login") || location.hash === "#/home" && prevURL === "#/profil" && !Logged)){
if((location.hash === "#/home" && prevURL === "#/login") || (location.hash === "#/home" && prevURL === "#/profil")){
window.location.reload();
}
})
});
const home=ref(i18n("app.home"))
const notifications=ref(i18n("app.notifications"))
const settings=ref(i18n("app.settings"))

View File

@ -56,8 +56,10 @@
}
async function unRegister(){
await deleteUser(user.regNo);
disconnect();
setTimeout(() => {
window.location.href="#/home";
}, "500");
}