You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
456 B
22 lines
456 B
<script>
|
|
import auth from "./stores/auth";
|
|
import stufflog from "./stores/stufflog";
|
|
import modal from "./stores/modal";
|
|
|
|
export let url = "";
|
|
|
|
let initialLoadDone = false;
|
|
|
|
auth.check();
|
|
|
|
$: {
|
|
if ($auth.user !== null && !initialLoadDone) {
|
|
initialLoadDone = true;
|
|
stufflog.listActivities();
|
|
stufflog.listPeriods();
|
|
} else if ($auth.user === null && $auth.checked) {
|
|
initialLoadDone = false;
|
|
modal.open("login");
|
|
}
|
|
}
|
|
</script>
|