diff --git a/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts b/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts index 93df599..43125af 100644 --- a/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts +++ b/Front/skydivelogs-app/src/app/list-of-jumps/list-of-jumps.component.ts @@ -72,7 +72,9 @@ export class ListOfJumpsComponent implements OnInit { delete(item: JumpResp) { let data : Array = this.dataSourceTable.data; data = data.filter(d => d.id !== item.id); + this.dataSourceTable.data = data; + this.resultsLength = data.length; this.serviceApi.DeleteJump(item); } diff --git a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts index 5e3e116..3e15422 100644 --- a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts +++ b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts @@ -96,6 +96,10 @@ export class NewJumpComponent implements OnInit { this.isSpecial === undefined ? false : this.isSpecial); setTimeout(() => { + this.comments = undefined; + this.withCutaway = false; + this.isSpecial = false; + if (this.resetForm === true) { this.initForm(); }