Merged PR 711: #1883 WA - Routing nach Klick auf abgeholt und Lieferschein drucken

#1883 WA - Routing nach Klick auf abgeholt und Lieferschein drucken

Related work items: #1883
This commit is contained in:
Andreas Schickinger
2021-06-15 14:21:24 +00:00
committed by Lorenz Hilpert
parent b61ea10fe3
commit 7f439573b3

View File

@@ -295,7 +295,12 @@ export class ShelfOrderDetailsComponent {
async handleActionClick(action: KeyValueDTOOfStringAndString, target: HTMLButtonElement) {
this.activeButton = target;
await this.setState(action);
if (action.label === 'abgeholt' || action.value === 'abgeholt') {
if (
action.label === 'abgeholt' ||
action.value === 'abgeholt' ||
action.label === 'abgeholt und Lieferschein drucken' ||
action.value === 'abgeholt und Lieferschein drucken'
) {
this.router.navigate(['/shelf', 'search']);
this.store.dispatch(
new ResetBreadcrumbsTo(