Skip to content

Commit

Permalink
fix: error messages quote-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Haehnlein committed Jan 6, 2020
1 parent 6dd29b1 commit e9c4abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>
{{ 'quote.edit.saved.your_quote_request_has_been_saved.text' | translate }}
</div>

<div *ngIf="error" role="alert" class="alert alert-danger">{{ error.status }}: {{ error.error }}</div>
<ish-error-message [error]="error"></ish-error-message>

<!-- Description -->
<!-- Quote Header ( shown once if quote request submitted ) -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ServerHtmlDirective } from 'ish-core/directives/server-html.directive';
import { User } from 'ish-core/models/user/user.model';
import { DatePipe } from 'ish-core/pipes/date.pipe';
import { LineItemListComponent } from 'ish-shared/components/basket/line-item-list/line-item-list.component';
import { ErrorMessageComponent } from 'ish-shared/components/common/error-message/error-message.component';
import { LoadingComponent } from 'ish-shared/components/common/loading/loading.component';
import { RecentlyViewedComponent } from 'ish-shared/components/recently/recently-viewed/recently-viewed.component';
import { InputComponent } from 'ish-shared/forms/components/input/input.component';
Expand All @@ -28,6 +29,7 @@ describe('Quote Edit Component', () => {
TestBed.configureTestingModule({
declarations: [
DatePipe,
MockComponent(ErrorMessageComponent),
MockComponent(InputComponent),
MockComponent(LineItemListComponent),
MockComponent(LoadingComponent),
Expand Down

0 comments on commit e9c4abf

Please sign in to comment.