Skip to content

Commit

Permalink
Hide stats and errors when unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
rr-adam committed Nov 22, 2024
1 parent 5dbd493 commit 8d047be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions general/pages/ontology/[...resource].vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@

<transition mode="out-in">
<StatsComponent
v-if="statsServer && missingImportsServer"
v-if="statsServer && missingImportsServer && !unauthorizedError"
:is-comparing="isComparing"
/>
</transition>
Expand Down Expand Up @@ -722,7 +722,7 @@
</div>

<!-- errors -->
<Errors :error="error" />
<Errors v-if="!unauthorizedError" :error="error" />

<div v-if="isLoader" class="text-center mt-5">
<div class="spinner-border" role="status">
Expand Down Expand Up @@ -987,7 +987,7 @@ export default {
);
},
hasVersions() {
return this.ontologyVersions.data.length > 1;
return this.ontologyVersions.data.length >= 1;
},
isComparing() {
return (
Expand All @@ -1003,6 +1003,10 @@ export default {
this.fetchData();
},
async version() {
this.error.entityNotFound = false;
this.error.entityData = false;
this.error.modules = false;
this.error.properties = false;
this.clearUnauthorizedError();
await Promise.all([
this.fetchModules(),
Expand Down

0 comments on commit 8d047be

Please sign in to comment.