Upload avatar

This commit is contained in:
rotimi-best
2021-08-26 13:35:56 +03:00
parent 26798f1e93
commit 05ed2b74ee
16 changed files with 290 additions and 77 deletions
+7 -3
View File
@@ -62,7 +62,7 @@
$user.currentSession = authUser;
profile.set(data[0]);
await setProfileIdOfGroupMember(authUser.email, data[0].id);
// await setProfileIdOfGroupMember(authUser.email, data[0].id);
// If user coming to login page, then
if (path.includes('login') || path.includes('signup')) {
@@ -77,7 +77,7 @@
console.log(`profileData`, profileData);
profile.set(profileData);
setProfileIdOfGroupMember(authUser.email, profileData.id);
// setProfileIdOfGroupMember(authUser.email, profileData.id);
// If user coming to login page, then
if (path.includes('login') || path.includes('signup')) {
@@ -86,6 +86,10 @@
}
}
function isCoursePage(path) {
return /courses\/[a-z 0-9 -]/.test(path);
}
onMount(() => {
const _isMvpUser = localStorage.getItem('mvp');
@@ -130,7 +134,7 @@
<!-- <Nav {segment} /> -->
<main>
{#if !['login', 'signup'].includes(path)}
{#if !['login', 'signup'].includes(path) && !isCoursePage(path)}
<Navigation {segment} disableLogin={!allowUser} />
{/if}