[+] Display content according to staticpage

This commit is contained in:
Hykilpikonna
2020-01-05 16:22:56 -05:00
parent 1d404b4f51
commit d56d985734
+19 -15
View File
@@ -1,23 +1,27 @@
<template> <template>
<div id="app" class="theme-default"> <div id="app" class="theme-default">
<login v-if="showLogin" v-on:login:user="onLogin"/> <div id="app-inner" v-if="staticPage === ''">
<navigation v-if="user != null" <login v-if="showLogin" v-on:login:user="onLogin"/>
:courses="gradedCourses" <navigation v-if="user != null"
:user="user" :courses="gradedCourses"
:nav="nav" :user="user"
@sign-out="signOut" @select-time="selectTime"> :nav="nav"
</navigation> @sign-out="signOut" @select-time="selectTime">
</navigation>
<div id="app-content" v-if="assignmentsReady && loading === ''"> <div id="app-content" v-if="assignmentsReady && loading === ''">
<overall v-if="nav.id === 'overall'" <overall v-if="nav.id === 'overall'"
:courses="gradedCourses"> :courses="gradedCourses">
</overall> </overall>
<course-page v-if="nav.id === 'course'" <course-page v-if="nav.id === 'course'"
:course="gradedCourses.find(c => +c.id === +nav.info.id)"> :course="gradedCourses.find(c => +c.id === +nav.info.id)">
</course-page> </course-page>
</div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
</div> </div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/> <Info v-if="staticPage === 'info'"/>
</div> </div>
</template> </template>