Skip to content
Snippets Groups Projects
Commit 4a09e2b4 authored by moon's avatar moon
Browse files

Hide empty table for submitted changes for condensate and protein

parent 4fd78d0e
No related branches found
No related tags found
No related merge requests found
<template>
<div>
<table
:id="id"
class="table table-striped table-bordered table-hover"
style="width: 100%"
/>
<h5
v-if="!showTable"
class="text-center"
>
No submitted change.
</h5>
<div v-else>
<table
:id="id"
class="table table-striped table-bordered table-hover"
style="width: 100%"
/>
</div>
</div>
</template>
......@@ -25,6 +33,7 @@ export default {
rows: [],
header: [],
total: 0,
showTable: true,
isDev: process.env.NODE_ENV === 'development',
};
},
......@@ -401,6 +410,10 @@ export default {
data: res.data.data,
};
if(res.data.data.length === 0) {
this.showTable = false
}
fnCallback(dat);
}
} catch (error) {
......
<template>
<table
:id="id"
class="table table-striped table-bordered table-hover"
style="width: 100%"
/>
<div>
<h5
v-if="!showTable"
class="text-center"
>
No submitted change.
</h5>
<div v-else>
<table
:id="id"
class="table table-striped table-bordered table-hover"
style="width: 100%"
/>
</div>
</div>
</template>
<script>
......@@ -22,6 +32,7 @@ export default {
rows: [],
header: [],
total: 0,
showTable: true,
isDev: process.env.NODE_ENV === 'development',
};
},
......@@ -319,6 +330,10 @@ export default {
data: res.data.data,
};
if(res.data.data.length === 0) {
this.showTable = false
}
fnCallback(dat);
}
} catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment