This commit is contained in:
@@ -167,17 +167,7 @@ export default {
|
||||
if ((await window.$gz.dialog.confirmDelete()) != true) {
|
||||
return;
|
||||
}
|
||||
this.value.items.splice(this.pvm.selectedItemIndex, 1);
|
||||
this.pvm.selectItem(null); //select nothing in essence resetting a child selects and this one too clearing form
|
||||
|
||||
//todo: put this id in a collection at parent to be deleted when it's saved and marked dirty (a function "DeleteItem(index)")
|
||||
//if no concurrency then just remove and ignore, no need to save, if concurrency then it needs to be deleted at the server
|
||||
|
||||
// if (this.value.items.length > 0) {
|
||||
// this.pvm.selectedItemIndex = this.value.items.length - 1;
|
||||
// } else {
|
||||
// this.pvm.selectedItemIndex = null;
|
||||
// }
|
||||
this.pvm.deleteItem(this.pvm.selectedItemIndex);
|
||||
},
|
||||
selectItem: function(item) {
|
||||
this.selectedRow = [item];
|
||||
|
||||
Reference in New Issue
Block a user