From f0902bfae7949eb6d1e5708621096b2cc88e92c1 Mon Sep 17 00:00:00 2001 From: James Awe Date: Tue, 23 Apr 2024 08:35:03 -0700 Subject: [PATCH] present all available facilities On load, it was trying to only get currentTeamsFacilities(), but that was flaky, so now I get ALL facilities from all teams that I'm on. Also fixed a few things that had changed in Viewer API. --- index.js | 32 +++++++++++++++++++++----------- src/fac_stubs.js | 4 ++-- src/model_stubs.js | 2 +- src/st_stubs.js | 26 +++++++++++++++++++++++++- 4 files changed, 49 insertions(+), 15 deletions(-) diff --git a/index.js b/index.js index 590c61f..b7a27e6 100644 --- a/index.js +++ b/index.js @@ -15,29 +15,39 @@ import * as st_stubs from './src/st_stubs.js'; **********************/ async function getAllFacilities(app) { - const currentTeamFacilities = await app.getCurrentTeamsFacilities(); // Facilities we have access to based on the current team - // we will construct a readable table to dump out the info for the user - let printOutFacilities = []; - let tmp = null; - for (let i=0; i