mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1485: #3359 Removed resetSelectedBranch logic on navigation click
#3359 Removed resetSelectedBranch logic on navigation click
This commit is contained in:
committed by
Lorenz Hilpert
parent
02aee02694
commit
138974bca7
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user