forked from uwcirg/shl-ips
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only load content after session is validated
- Loading branch information
1 parent
4f6e6e8
commit f8209c6
Showing
2 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
let sofClient: SOFClient = new SOFClient(SOF_HOSTS[0]); | ||
setContext('sofClient', sofClient); | ||
let initialized = false; | ||
let validSession = false; | ||
let inactivityTimer: NodeJS.Timeout | undefined; | ||
function resetInactivityTimer() { | ||
|
@@ -107,20 +108,26 @@ | |
</Collapse> | ||
</Navbar> | ||
{#if initialized} | ||
<SessionStatus/> | ||
<Row class="main-row"> | ||
<Col> | ||
<slot /> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col style="margin-top: 20px; padding-top: 20px; border-top: 1px solid rgb(204, 204, 204);" > | ||
<footer> | ||
<Row class="justify-content-center"> | ||
<p><center>If you have any questions or problems using the system, please get in touch at <a href="mailto:[email protected]">[email protected]</a> for assistance.</center></p> | ||
</Row> | ||
</footer> | ||
</Col> | ||
</Row> | ||
<SessionStatus on:valid-session={({ detail }) => { | ||
if (detail) { | ||
validSession = true; | ||
} | ||
}}/> | ||
{#if validSession} | ||
<Row class="main-row"> | ||
<Col> | ||
<slot /> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col style="margin-top: 20px; padding-top: 20px; border-top: 1px solid rgb(204, 204, 204);" > | ||
<footer> | ||
<Row class="justify-content-center"> | ||
<p><center>If you have any questions or problems using the system, please get in touch at <a href="mailto:[email protected]">[email protected]</a> for assistance.</center></p> | ||
</Row> | ||
</footer> | ||
</Col> | ||
</Row> | ||
{/if} | ||
{/if} | ||
</Container> |