This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user