From 8d047bea8e928db2047dabf56b15708a03ebea02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Roso=C5=82owski?= <87621210+rr-adam@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:04:35 +0100 Subject: [PATCH] Hide stats and errors when unauthorized --- general/pages/ontology/[...resource].vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/general/pages/ontology/[...resource].vue b/general/pages/ontology/[...resource].vue index e2299511..9a1226d3 100644 --- a/general/pages/ontology/[...resource].vue +++ b/general/pages/ontology/[...resource].vue @@ -243,7 +243,7 @@ @@ -722,7 +722,7 @@ - +
@@ -987,7 +987,7 @@ export default { ); }, hasVersions() { - return this.ontologyVersions.data.length > 1; + return this.ontologyVersions.data.length >= 1; }, isComparing() { return ( @@ -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(),