#4243 kein Kundenkarten-Checkbox fuer HSC

This commit is contained in:
Lorenz Hilpert
2023-07-31 15:09:59 +02:00
parent da143c3412
commit d3014e7e9a
2 changed files with 12 additions and 9 deletions

View File

@@ -1,11 +1,13 @@
<shared-checkbox
*ngIf="customerType !== 'b2b'"
[ngModel]="p4mUser"
(ngModelChange)="setValue({ p4mUser: !p4mUser })"
[disabled]="p4mReadonly || readonly"
>
Kundenkarte
</shared-checkbox>
<ng-container *ifRole="'Store'">
<shared-checkbox
*ngIf="customerType !== 'b2b'"
[ngModel]="p4mUser"
(ngModelChange)="setValue({ p4mUser: !p4mUser })"
[disabled]="p4mReadonly || readonly"
>
Kundenkarte
</shared-checkbox>
</ng-container>
<ng-container *ngFor="let option of filteredOptions$ | async">
<shared-checkbox
*ngIf="option?.enabled !== false"

View File

@@ -4,9 +4,10 @@ import { CommonModule } from '@angular/common';
import { CustomerTypeSelectorComponent } from './customer-type-selector.component';
import { FormsModule } from '@angular/forms';
import { CheckboxComponent } from '@shared/components/checkbox';
import { AuthModule } from '@core/auth';
@NgModule({
imports: [CommonModule, FormsModule, CheckboxComponent],
imports: [CommonModule, FormsModule, CheckboxComponent, AuthModule],
exports: [CustomerTypeSelectorComponent],
declarations: [CustomerTypeSelectorComponent],
})