Skip to content

Commit

Permalink
#19 display error feedback on update ticket form in success state
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Aug 9, 2019
1 parent f2a1d8e commit f830367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/reservation/success/success.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ReservationInfo } from 'src/app/model/reservation-info';
import { I18nService } from 'src/app/shared/i18n.service';
import { HttpErrorResponse } from '@angular/common/http';
import { AnalyticsService } from 'src/app/shared/analytics.service';
import { handleServerSideValidationError } from 'src/app/shared/validation-helper';

@Component({
selector: 'app-success',
Expand Down Expand Up @@ -104,6 +105,8 @@ export class SuccessComponent implements OnInit {
if (res.success) {
this.loadReservation();
}
}, (err) => {
handleServerSideValidationError(err, this.ticketsFormControl[uuid]);
});
}

Expand Down

0 comments on commit f830367

Please sign in to comment.