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 this.activeItemIndex
].deleted = true; ].deleted = true;
this.setDefaultView(); this.setDefaultView();
this.$emit("change");
}, },
setDefaultView: function() { setDefaultView: function() {
//if only one record left then display it otherwise just let the datatable show what the user can click on //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 //todo: other grandchildren
this.setDefaultView(); this.setDefaultView();
this.$emit("change");
}, },
setDefaultView: function() { setDefaultView: function() {
//if only one record left then display it otherwise just let the datatable show what the user can click on //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: { computed: {
isDeleted: function() { isDeleted: function() {
if (this.value.items[activeItemIndex] == null) { if (this.value.items[this.activeItemIndex] == null) {
this.setDefaultView(); this.setDefaultView();
return true; return true;
} }