Skip to content
Snippets Groups Projects
Commit 7ea53e6c authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer Committed by Ron Lucke
Browse files

Close delete dialog before deleting a structural element, fixes #315.

parent 844e628a
No related branches found
No related tags found
No related merge requests found
...@@ -1045,11 +1045,11 @@ export default { ...@@ -1045,11 +1045,11 @@ export default {
}, },
async deleteCurrentElement() { async deleteCurrentElement() {
let parent_id = this.structuralElement.relationships.parent.data.id; let parent_id = this.structuralElement.relationships.parent.data.id;
this.showElementDeleteDialog(false);
await this.deleteStructuralElement({ await this.deleteStructuralElement({
id: this.currentId, id: this.currentId,
parentId: this.structuralElement.relationships.parent.data.id, parentId: this.structuralElement.relationships.parent.data.id,
}); });
this.showElementDeleteDialog(false);
this.$router.push(parent_id); this.$router.push(parent_id);
}, },
async createElement() { async createElement() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment