mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Compare commits
3 Commits
7e7721b222
...
fix/3632-F
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b466f7d65 | ||
|
|
62d93d1122 | ||
|
|
ed83fedd61 |
@@ -39,15 +39,15 @@
|
||||
<div class="shell-footer-wrapper">
|
||||
<shell-footer *ngIf="section$ | async; let section">
|
||||
<ng-container *ngIf="section === 'customer'">
|
||||
<a [routerLink]="['/kunde', 'product']" routerLinkActive="active">
|
||||
<a [routerLink]="['/kunde', activatedProcessId$ | async, 'product']" routerLinkActive="active">
|
||||
<ui-icon icon="catalog" size="30px"></ui-icon>
|
||||
Artikelsuche
|
||||
</a>
|
||||
<a [routerLink]="['/kunde', 'customer']" routerLinkActive="active">
|
||||
<a [routerLink]="['/kunde', activatedProcessId$ | async, 'customer']" routerLinkActive="active">
|
||||
<ui-icon icon="customer" size="24px"></ui-icon>
|
||||
Kundensuche
|
||||
</a>
|
||||
<a [routerLink]="['/kunde/goods/out']" routerLinkActive="active">
|
||||
<a [routerLink]="['/kunde', activatedProcessId$ | async, 'goods', 'out']" routerLinkActive="active">
|
||||
<ui-icon icon="box_out" size="24px"></ui-icon>
|
||||
Warenausgabe
|
||||
</a>
|
||||
|
||||
@@ -175,15 +175,16 @@ describe('ShellComponent', () => {
|
||||
|
||||
it('should display the menu items for section customer', () => {
|
||||
applicationServiceMock.getSection$.and.returnValue(of('customer'));
|
||||
applicationServiceMock.getActivatedProcessId$.and.returnValue(of(1));
|
||||
spectator.detectComponentChanges();
|
||||
|
||||
const anchors = spectator.queryAll('shell-footer a');
|
||||
expect(anchors[0]).toHaveText('Artikelsuche');
|
||||
expect(anchors[0]).toHaveAttribute('href', '/kunde/product');
|
||||
expect(anchors[0]).toHaveAttribute('href', '/kunde/1/product');
|
||||
expect(anchors[1]).toHaveText('Kundensuche');
|
||||
expect(anchors[1]).toHaveAttribute('href', '/kunde/customer');
|
||||
expect(anchors[1]).toHaveAttribute('href', '/kunde/1/customer');
|
||||
expect(anchors[2]).toHaveText('Warenausgabe');
|
||||
expect(anchors[2]).toHaveAttribute('href', '/kunde/goods/out');
|
||||
expect(anchors[2]).toHaveAttribute('href', '/kunde/1/goods/out');
|
||||
});
|
||||
|
||||
it('should display the menu items for section branch', () => {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div>
|
||||
Anzahl Positionen
|
||||
</div>
|
||||
<div class="font-bold">
|
||||
<div class="font-bold anzahl-positionen">
|
||||
{{ itemsCount }}
|
||||
</div>
|
||||
<div class="text-right">
|
||||
|
||||
Reference in New Issue
Block a user