Do not show the Edit UI when error accessing the dataset

This commit is contained in:
davelopez
2024-05-21 12:32:13 +02:00
parent 37551f525b
commit d6087e56cf
@@ -5,7 +5,7 @@
{{ messageText | l }}
</b-alert>
<DatasetAttributesProvider :id="datasetId" v-slot="{ result, loading }" @error="onError">
<div v-if="!loading" class="mt-3">
<div v-if="!loading && !hasError" class="mt-3">
<b-tabs>
<b-tab v-if="!result['attribute_disable']">
<template v-slot:title>
@@ -121,6 +121,11 @@ export default {
formData: {},
};
},
computed: {
hasError() {
return this.messageVariant === "danger";
},
},
methods: {
onAttribute(data) {
this.formData["attribute"] = data;