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