diff --git a/serverless.yml b/serverless.yml index 5630da6..9df0131 100644 --- a/serverless.yml +++ b/serverless.yml @@ -78,7 +78,7 @@ custom: 'integration.request.header.cache-control': "'public, max-age=86400, immutable'" - s3: - path: /projects/{pid} + path: /questlog/{pid} method: get action: GetObject bucket: ${self:custom.webuiBucket} @@ -89,7 +89,7 @@ custom: - s3: - path: /projects/{gid}/{pid} + path: /questlog/{gid}/{pid} method: get action: GetObject bucket: ${self:custom.webuiBucket} @@ -148,4 +148,4 @@ custom: createRoute53Record: true endpointType: 'regional' hostedZoneId: ${env:HOSTED_ZONE_ID} - autoDomain: true \ No newline at end of file + autoDomain: true diff --git a/svelte-ui/src/pages/QLPage.svelte b/svelte-ui/src/pages/QLPage.svelte index b5a4544..3f3047c 100644 --- a/svelte-ui/src/pages/QLPage.svelte +++ b/svelte-ui/src/pages/QLPage.svelte @@ -6,11 +6,18 @@ import QuestLog from "../components/QuestLog.svelte"; import RefreshSelection from "../components/RefreshSelection.svelte"; import projectGroupStore from "../stores/projectGroup"; + import projectStore from "../stores/project"; import { sortProjects } from "../utils/sorters"; export let groupId = ""; export let projectId = ""; + $: { + if ($projectStore.stale && !$projectStore.loading) { + projectStore.load(); + } + } + $: { if ($projectGroupStore.stale && !$projectGroupStore.loading) { projectGroupStore.load(); @@ -53,4 +60,4 @@ margin-top: 0; box-sizing: border-box; } - \ No newline at end of file +