Add toggle functionality to expand/collapse all items in CalculationDumps and adjust tab order in Config page
This commit is contained in:
parent
f1222dc410
commit
88d258cd06
2 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
<div class="single-dump-container">
|
<div class="single-dump-container">
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<basic-button @click="showModal = false" :show-icon="false" variant="secondary">Close</basic-button>
|
<basic-button @click="showModal = false" :show-icon="false" variant="secondary">Close</basic-button>
|
||||||
|
<basic-button variant="secondary" :show-icon="false" @click="expand = !expand"> {{ expand === true ? 'Collapse all items' : 'Expand all items' }}</basic-button>
|
||||||
</div>
|
</div>
|
||||||
<json-tree-viewer :data="dump" :all-expanded="expand"></json-tree-viewer>
|
<json-tree-viewer :data="dump" :all-expanded="expand"></json-tree-viewer>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -65,6 +66,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
showModal: false,
|
showModal: false,
|
||||||
dump: null,
|
dump: null,
|
||||||
|
expand: false,
|
||||||
|
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
pagination: {page: 1, pageCount: 1, totalCount: 1},
|
pagination: {page: 1, pageCount: 1, totalCount: 1},
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,8 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.activeUserStore.isService) {
|
if (this.activeUserStore.isService) {
|
||||||
tabs.push(this.appsTab);
|
|
||||||
tabs.push(this.calculationDump);
|
tabs.push(this.calculationDump);
|
||||||
|
tabs.push(this.appsTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.activeUserStore.isRightManagement) {
|
if (this.activeUserStore.isRightManagement) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue