This commit is contained in:
2021-04-16 18:43:18 +00:00
parent 95f4f0aeb6
commit 444044ef41
2 changed files with 3 additions and 1 deletions

View File

@@ -158,6 +158,7 @@ export default {
this.activeItemIndex
].deleted = true;
this.setDefaultView();
this.$emit("change");
},
setDefaultView: function() {
//if only one record left then display it otherwise just let the datatable show what the user can click on

View File

@@ -212,6 +212,7 @@ export default {
);
//todo: other grandchildren
this.setDefaultView();
this.$emit("change");
},
setDefaultView: function() {
//if only one record left then display it otherwise just let the datatable show what the user can click on
@@ -256,7 +257,7 @@ export default {
},
computed: {
isDeleted: function() {
if (this.value.items[activeItemIndex] == null) {
if (this.value.items[this.activeItemIndex] == null) {
this.setDefaultView();
return true;
}