#1407 Styling Fix in DIG Delivery, Weitere Verfügbarkeiten öffnen Bugfix

This commit is contained in:
Andreas Schickinger
2021-02-25 12:33:27 +01:00
parent 4193a6a702
commit 45340fbddb
4 changed files with 10 additions and 5 deletions

View File

@@ -7,9 +7,11 @@
<span class="price"
>{{ item.catalogAvailability?.price?.value?.value | currency: ' ' }} {{ item.catalogAvailability?.price?.value?.currency }}</span
>
<div class="grow"></div>
<span class="delivery">Versandkostenfrei</span>
<span class="date">Versanddatum <strong>27.02.21</strong></span>
<div class="grow"></div>
<div>
<button type="button" class="select-option" (click)="select()">
Auswählen

View File

@@ -23,6 +23,8 @@ export class BranchesAvalabilityOverviewComponent implements OnInit, OnDestroy {
branchInfos: BranchInfoView[] = [];
filteredBranchInfos: BranchInfoView[] = [];
userBranch: BranchDTO;
@Output() loaded = new EventEmitter<void>();
@Output() destroymodal: EventEmitter<boolean> = new EventEmitter();
destroy$ = new Subject();
@@ -76,6 +78,7 @@ export class BranchesAvalabilityOverviewComponent implements OnInit, OnDestroy {
.subscribe((t) => {
this.branchInfos = t.filter((b) => b && b.load);
this.filteredBranchInfos = this.loadDefaultBranches();
this.loaded.emit();
});
}

View File

@@ -218,9 +218,9 @@
</div>
</ng-template>
<div class="actions align-right" [ngClass]="{ 'action-partly-loaded': !fullyLoaded }">
<app-button (action)="openBranchesAvailabilityModal()" *ngIf="product.formatIcon !== 'EB' && product.formatIcon !== 'DL'"
>weitere Verfügbarkeiten</app-button
>
<app-button (action)="openBranchesAvailabilityModal()" *ngIf="product.formatIcon !== 'EB' && product.formatIcon !== 'DL'">
weitere Verfügbarkeiten
</app-button>
<app-button
[primary]="true"
[load]="true"
@@ -281,6 +281,7 @@
<ng-container *ngIf="item && loadBranchesInfoComponent">
<app-branches-avalability-overview
(loaded)="branchesAvailabilityInfo.openDialog()"
(destroymodal)="destroyAvailabilityModal($event)"
[item]="item"
#branchesAvailabilityInfo

View File

@@ -512,7 +512,6 @@ export class ProductDetailsComponent implements OnInit, OnDestroy {
openBranchesAvailabilityModal() {
this.loadBranchesInfoComponent = true;
this.detectChanges();
this.branchesAvailabilityInfo.openDialog();
}
destroyAvailabilityModal() {