Merged PR 1485: #3359 Removed resetSelectedBranch logic on navigation click

#3359 Removed resetSelectedBranch logic on navigation click
This commit is contained in:
Nino Righi
2023-02-14 14:58:47 +00:00
committed by Lorenz Hilpert
parent 02aee02694
commit 138974bca7
3 changed files with 2 additions and 9 deletions

View File

@@ -918,7 +918,7 @@ export class DomainCheckoutService {
//#region Common
private updateProcessCount(processId: number, count: number) {
this.applicationService.patchProcess(processId, { data: { count } });
this.applicationService.patchProcessData(processId, { count });
}
//#endregion

View File

@@ -39,7 +39,7 @@
<div class="shell-footer-wrapper">
<shell-footer *ngIf="section$ | async; let section">
<ng-container *ngIf="section === 'customer'">
<a (click)="resetSelectedBranch()" [routerLink]="[customerBasePath$ | async, 'product']" routerLinkActive="active">
<a [routerLink]="[customerBasePath$ | async, 'product']" routerLinkActive="active">
<ui-icon icon="catalog" size="30px"></ui-icon>
Artikelsuche
</a>

View File

@@ -164,13 +164,6 @@ export class ShellComponent {
});
}
async resetSelectedBranch() {
const processId = await this.activatedProcessId$.pipe(take(1)).toPromise();
if (!!processId) {
this._appService.patchProcessData(processId, { selectedBranch: undefined });
}
}
trackByIdFn: TrackByFunction<ApplicationProcess> = (_, process) => process.id;
fetchAndOpenPackages = () => this._wrongDestinationModalService.fetchAndOpen();