From bc58642741365814f5abb41c7ebece9b287ac432 Mon Sep 17 00:00:00 2001 From: Selwyn Date: Mon, 3 Apr 2023 14:37:28 +0200 Subject: [PATCH 1/2] Set environment variables `SPACES_MODE` to `rooms` --- netlify.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 01c3568e..4f3cee2c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,6 +7,7 @@ NODE_ENV = "production" NPM_CONFIG_AUDIT = "false" NPM_CONFIG_FUND = "false" NPM_FLAGS = "--ignore-scripts" +SPACES_MODE = "rooms" [build.processing.html] pretty_urls = true @@ -18,4 +19,4 @@ Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload" Referrer-Policy = "no-referrer-when-downgrade" X-Content-Type-Options = "nosniff" X-Frame-Options = "SAMEORIGIN" -X-XSS-Protection = "1; mode=block" \ No newline at end of file +X-XSS-Protection = "1; mode=block" From c851c7940d59c232cc9aa5721ab87e9f3e7c9ebc Mon Sep 17 00:00:00 2001 From: Selwyn Date: Mon, 3 Apr 2023 16:21:15 +0200 Subject: [PATCH 2/2] Use space occupancy when available --- src/stores/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/map.ts b/src/stores/map.ts index d8acb5f6..6c70557d 100644 --- a/src/stores/map.ts +++ b/src/stores/map.ts @@ -27,7 +27,7 @@ export const useMapStore = defineStore("map", () => { spaceSlug: space.slug, buildingSlug: space.building.slug, buildingNumber: space.building.number, - buildingOccupancy: space.building.occupancy, + buildingOccupancy: space.occupancy || "unknown", isOpen: spaceIsOpen(now, space.openingHours), ...space.facilities, },