Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: #328 removing cleaning data from form
  • Loading branch information
enriquezrene committed Jun 3, 2020
commit 609d97d748744436e83197ee5eaed4a009fbf225
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" [disabled]="!entryForm.valid">Save</button>
<button #closeModal type="button" class="btn btn-secondary" data-dismiss="modal" (click)="close()">
<button #closeModal type="button" class="btn btn-secondary" data-dismiss="modal" >
Close
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,9 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {

/* istanbul ignore next */
closeEntryModal() {
this.close();
this.closeModal?.nativeElement?.click();
}

close() {
this.entryForm.reset();
this.cleanForm();
}

onSubmit() {
// start&end date same for now
const entryDate = this.entryForm.value.entry_date;
Expand Down