From 0aa606c893fda1fb5417c7ecd7571f2a58fa0f81 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 23 Aug 2024 12:22:30 -0400 Subject: [PATCH] refactor(web): access controls --- .../asset-viewer/asset-viewer-nav-bar.spec.ts | 1 - .../asset-viewer/asset-viewer-nav-bar.svelte | 29 ++--- .../asset-viewer/asset-viewer.svelte | 4 +- web/src/lib/stores/access.store.spec.ts | 112 ++++++++++++++++++ web/src/lib/stores/access.store.ts | 104 ++++++++++++++++ web/src/lib/utils/auth.ts | 4 + 6 files changed, 236 insertions(+), 18 deletions(-) create mode 100644 web/src/lib/stores/access.store.spec.ts create mode 100644 web/src/lib/stores/access.store.ts diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts index c82d9f9659..bf6ea170fc 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts @@ -9,7 +9,6 @@ describe('AssetViewerNavBar component', () => { const additionalProps = { showCopyButton: false, showZoomButton: false, - showDetailButton: false, showDownloadButton: false, showMotionPlayButton: false, showShareButton: false, diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte index a57a7faef8..988433bbfb 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte @@ -1,4 +1,5 @@