From f2e09b664587a747b277aebd0f89ce4af4259747 Mon Sep 17 00:00:00 2001 From: Diogo Castro Date: Fri, 8 Jul 2022 12:29:44 +0200 Subject: [PATCH] Update to upstream changes --- ifc-js/src/App.vue | 2 +- jupyter/src/App.vue | 2 +- rootjs/src/App.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ifc-js/src/App.vue b/ifc-js/src/App.vue index b19ff79..1af11ce 100644 --- a/ifc-js/src/App.vue +++ b/ifc-js/src/App.vue @@ -91,7 +91,7 @@ export default { ifcLoader.ifcManager.setWasmPath( '../../../../../../../../../../../../../../../../cernbox/ifc-js-1.0.1/' ) - const headers = getHeadersWithAuth(isPublic, this.getToken, this.publicLinkPassword) + const headers = getHeadersWithAuth(isPublic, this.accessToken, this.publicLinkPassword) ifcLoader.setRequestHeader(headers) const filePath = `/${this.$route.params.filePath .split('/') diff --git a/jupyter/src/App.vue b/jupyter/src/App.vue index 6b0db2e..07d96ba 100644 --- a/jupyter/src/App.vue +++ b/jupyter/src/App.vue @@ -28,7 +28,7 @@ import { mapActions, mapGetters } from 'vuex' export default { name: 'Jupyter Viewer', computed: { - ...mapGetters('Files', ['publicLinkPassword']), + ...mapGetters('runtime/auth', ['publicLinkPassword']), ...mapGetters('Jupyter Viewer', ['isLoading', 'renderedNotebook', 'lastError']) }, mounted() { diff --git a/rootjs/src/App.vue b/rootjs/src/App.vue index 346f2b6..5319be0 100644 --- a/rootjs/src/App.vue +++ b/rootjs/src/App.vue @@ -34,7 +34,7 @@ export default { }), computed: { rootFile() { - const headers = getHeadersWithAuth(this.isPublic, this.getToken, this.publicLinkPassword) + const headers = getHeadersWithAuth(this.isPublic, this.accessToken, this.publicLinkPassword) return fetch(this.url, { headers }).then((resp) => { if (resp.ok) { return resp.arrayBuffer()