Skip to content

Commit 609d97d

Browse files
committed
fix: #328 removing cleaning data from form
1 parent 35cabe8 commit 609d97d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
</div>
107107
<div class="modal-footer">
108108
<button type="submit" class="btn btn-primary" [disabled]="!entryForm.valid">Save</button>
109-
<button #closeModal type="button" class="btn btn-secondary" data-dismiss="modal" (click)="close()">
109+
<button #closeModal type="button" class="btn btn-secondary" data-dismiss="modal" >
110110
Close
111111
</button>
112112
</div>

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,9 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
141141

142142
/* istanbul ignore next */
143143
closeEntryModal() {
144-
this.close();
145144
this.closeModal?.nativeElement?.click();
146145
}
147146

148-
close() {
149-
this.entryForm.reset();
150-
this.cleanForm();
151-
}
152-
153147
onSubmit() {
154148
// start&end date same for now
155149
const entryDate = this.entryForm.value.entry_date;

0 commit comments

Comments
 (0)