mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1646: #4390 Customer Area, removed navigation cards
#4390 Customer Area, removed navigation cards
This commit is contained in:
committed by
Lorenz Hilpert
parent
c30d8fa5fd
commit
c2943037d9
@@ -1,10 +1,3 @@
|
||||
<a
|
||||
*ngIf="customerSearchNavigation$ | async; let customerSearchNavigation"
|
||||
[routerLink]="customerSearchNavigation.path"
|
||||
[queryParams]="customerSearchNavigation.queryParams"
|
||||
class="text-[1.375rem] font-bold text-[#596470] text-center py-4"
|
||||
>Kundensuche</a
|
||||
>
|
||||
<div class="text-center pt-10 px-8 rounded-card side-view-shadow grow">
|
||||
<h1 class="text-[1.625rem] font-bold">Kundendaten erfassen</h1>
|
||||
<p class="text-lg mt-2">
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
||||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { ApplicationService } from '@core/application';
|
||||
import { CustomerSearchNavigation } from '@shared/services';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
@Component({
|
||||
selector: 'page-customer-create-side-view',
|
||||
@@ -14,9 +11,5 @@ import { map } from 'rxjs/operators';
|
||||
imports: [CommonModule, RouterModule],
|
||||
})
|
||||
export class CustomerCreateSideViewComponent {
|
||||
customerSearchNavigation$ = this._applicationService.activatedProcessId$.pipe(
|
||||
map((processId) => this.searchNavigation.defaultRoute({ processId }))
|
||||
);
|
||||
|
||||
constructor(public readonly searchNavigation: CustomerSearchNavigation, private _applicationService: ApplicationService) {}
|
||||
constructor() {}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
<a
|
||||
*ngIf="customerCreateNavigation$ | async; let customerCreateNavigation"
|
||||
[routerLink]="customerCreateNavigation.path"
|
||||
[queryParams]="customerCreateNavigation.queryParams"
|
||||
class="text-[1.375rem] font-bold text-[#596470] text-center py-4"
|
||||
>Kundendaten erfassen</a
|
||||
>
|
||||
<div class="text-center pt-10 px-8 rounded-card side-view-shadow grow">
|
||||
<h1 class="text-[1.625rem] font-bold">Kundensuche</h1>
|
||||
<p class="text-lg mt-2 mb-6">
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { AsyncPipe, CommonModule, NgIf } from '@angular/common';
|
||||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { CustomerCreateNavigation } from '@shared/services';
|
||||
import { Filter, FilterModule } from '@shared/components/filter';
|
||||
import { CustomerSearchStore } from '../store';
|
||||
import { map } from 'rxjs/operators';
|
||||
|
||||
@Component({
|
||||
selector: 'page-customer-main-side-view',
|
||||
@@ -15,15 +13,13 @@ import { map } from 'rxjs/operators';
|
||||
imports: [CommonModule, RouterModule, FilterModule, AsyncPipe, NgIf],
|
||||
})
|
||||
export class MainSideViewComponent {
|
||||
customerCreateNavigation$ = this._store.processId$.pipe(map((processId) => this._navigation.defaultRoute({ processId })));
|
||||
|
||||
message$ = this._store.message$;
|
||||
|
||||
filter$ = this._store.filter$;
|
||||
|
||||
fetching$ = this._store.fetchingCustomerList$;
|
||||
|
||||
constructor(private _navigation: CustomerCreateNavigation, private _store: CustomerSearchStore) {}
|
||||
constructor(private _store: CustomerSearchStore) {}
|
||||
|
||||
search(filter: Filter) {
|
||||
this._store.setFilter(filter);
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
<div class="desktop-large:hidden">
|
||||
<a
|
||||
*ngIf="customerCreateNavigation$ | async; let customerCreateNavigation"
|
||||
[routerLink]="customerCreateNavigation.path"
|
||||
[queryParams]="customerCreateNavigation.queryParams"
|
||||
class="block text-[1.375rem] font-bold text-[#596470] text-center py-4"
|
||||
>Kundendaten erfassen</a
|
||||
>
|
||||
<div class="text-center pt-10 px-8 rounded-card side-view-shadow grow">
|
||||
<h1 class="text-[1.625rem] font-bold">Kundensuche</h1>
|
||||
<p class="text-lg mt-2 mb-6">
|
||||
|
||||
@@ -6,7 +6,7 @@ import { AsyncPipe, NgIf } from '@angular/common';
|
||||
import { Router, RouterLink } from '@angular/router';
|
||||
import { IconComponent } from '@shared/components/icon';
|
||||
import { combineLatest } from 'rxjs';
|
||||
import { CustomerCreateNavigation, CustomerSearchNavigation } from '@shared/services';
|
||||
import { CustomerSearchNavigation } from '@shared/services';
|
||||
import { CustomerFilterMainViewModule } from '../filter-main-view/filter-main-view.module';
|
||||
import { isEmpty } from 'lodash';
|
||||
|
||||
@@ -20,8 +20,6 @@ import { isEmpty } from 'lodash';
|
||||
imports: [AsyncPipe, RouterLink, FilterModule, NgIf, IconComponent, CustomerFilterMainViewModule],
|
||||
})
|
||||
export class CustomerMainViewComponent {
|
||||
customerCreateNavigation$ = this._store.processId$.pipe(map((processId) => this._createNavigation.defaultRoute({ processId })));
|
||||
|
||||
filterRoute$ = combineLatest([this._store.processId$, this._store.filter$]).pipe(
|
||||
map(([processId, filter]) => {
|
||||
const route = this._searchNavigation.filterRoute({ processId, comingFrom: this._router.url?.split('?')[0] });
|
||||
@@ -45,12 +43,7 @@ export class CustomerMainViewComponent {
|
||||
|
||||
message$ = this._store.message$;
|
||||
|
||||
constructor(
|
||||
private _createNavigation: CustomerCreateNavigation,
|
||||
private _searchNavigation: CustomerSearchNavigation,
|
||||
private _store: CustomerSearchStore,
|
||||
private _router: Router
|
||||
) {}
|
||||
constructor(private _searchNavigation: CustomerSearchNavigation, private _store: CustomerSearchStore, private _router: Router) {}
|
||||
|
||||
search(filter: Filter) {
|
||||
this._store.setFilter(filter);
|
||||
|
||||
Reference in New Issue
Block a user