Compare commits

...

9 Commits

Author SHA1 Message Date
Michael Auer
d027df8856 Merge branch 'release/1.5' 2021-12-22 11:26:36 +01:00
Michael Auer
1dc979baaf merge branch 'release/1.5' 2021-12-22 11:24:24 +01:00
Michael Auer
f9908eaa57 merge branch 'release/1.5' 2021-12-22 11:23:09 +01:00
Andreas Schickinger
19fe83ed25 Merged PR 1018: #2555 Hotfix Historie und Print Dialog doppelte Scrollbar
#2555 Hotfix Historie und Print Dialog doppelte Scrollbar

Related work items: #2555
2021-12-20 12:06:44 +00:00
Lorenz Hilpert
3c033a1f0d Merged PR 1017: #2556 Fehlermeldung - scrollPos
#2556 Fehlermeldung  - scrollPos

Related work items: #2556
2021-12-20 09:57:50 +00:00
Andreas Schickinger
be031fb702 Merged PR 1016: #2543 Hotfix PDP SSC Fehlermeldung
#2543 Hotfix PDP SSC Fehlermeldung

Related work items: #2543
2021-12-16 13:24:06 +00:00
Lorenz Hilpert
34a6c6d997 Merged PR 1015: #2542 bei leere Liste wirf klick auf Abholfach Fehler
#2542 bei leere Liste wirf klick auf Abholfach Fehler

Related work items: #2542
2021-12-15 16:33:34 +00:00
Lorenz Hilpert
fa2c0d101f Merged PR 1014: #2541 Load-Ansicht dauerhaft bei leere Liste
#2541 Load-Ansicht dauerhaft bei leere Liste

Related work items: #2541
2021-12-15 15:01:00 +00:00
Lorenz Hilpert
c3f6cef14e Merged PR 1013: #2533 Reservierungsliste - bei leerer Liste wirf klick auf Abholfach Fehler
#2533  Reservierungsliste - bei leerer Liste wirf klick auf Abholfach Fehler

Related work items: #2533
2021-12-15 14:56:41 +00:00
19 changed files with 34 additions and 24 deletions

View File

@@ -20,6 +20,7 @@ export class PrintCompartmentLabelActionHandler extends ActionHandler<OrderItems
await this.uiModal
.open({
content: PrintModalComponent,
config: { showScrollbarY: false },
data: {
printImmediately: !this.nativeContainerService.isUiWebview().isNative,
printerType: 'Label',

View File

@@ -21,6 +21,7 @@ export class PrintShippingNoteActionHandler extends ActionHandler<OrderItemsCont
await this.uiModal
.open({
content: PrintModalComponent,
config: { showScrollbarY: false },
data: {
printImmediately: !this.nativeContainerService.isUiWebview().isNative,
printerType: 'Label',

View File

@@ -18,6 +18,10 @@
font-weight: 400 !important;
}
::ng-deep modal-print-cart ui-select .ui-select-options {
max-height: 9rem !important;
}
ui-select {
min-width: 255px;
}

View File

@@ -146,6 +146,7 @@ export class ArticleDetailsComponent implements OnInit, OnDestroy {
} as PrintModalData,
config: {
panelClass: [],
showScrollbarY: false,
},
});
}

View File

@@ -233,8 +233,8 @@ export class ArticleDetailsStore extends ComponentStore<ArticleDetailsState> {
const availability = isDownload ? downloadAvailability : pickupAvailability || deliveryDigAvailability;
return item?.catalogAvailability?.supplier === 'S' && !isDownload
? `${item?.catalogAvailability?.ssc} - ${item?.catalogAvailability?.sscText}`
: availability.ssc || availability.sscText
? `${availability.ssc} - ${availability.sscText}`
: availability?.ssc || availability?.sscText
? `${availability?.ssc} - ${availability?.sscText}`
: 'Keine Lieferanten vorhanden';
})
);

View File

@@ -369,6 +369,7 @@ export class CheckoutReviewComponent implements OnInit {
} as PrintModalData,
config: {
panelClass: [],
showScrollbarY: false,
},
});
}

View File

@@ -123,6 +123,7 @@ export class CheckoutSummaryComponent {
} as PrintModalData,
config: {
panelClass: [],
showScrollbarY: false,
},
});
}

View File

@@ -198,6 +198,7 @@ export class CustomerDetailsComponent implements OnInit {
this.modal.open({
content: HistoryComponent,
title: 'Historie',
config: { showScrollbarY: false },
data: {
mode: 'customer',
item: customer,

View File

@@ -54,6 +54,7 @@ export class CustomerOrderItemCardComponent implements OnInit {
this._modal.open({
content: HistoryComponent,
title: 'Historie',
config: { showScrollbarY: false },
data: {
mode: 'order',
item: {

View File

@@ -46,7 +46,7 @@ export class CustomerSearchMainComponent implements OnInit, OnDestroy {
// Updaten der QueryParams wenn diese sich ändern
if (!isEqual(this.search.getQueryParams(), queryParams)) {
const params = { ...queryParams };
delete params.scrollPos;
delete params?.scrollPos;
this.search.setQueryParams({ params });
}

View File

@@ -57,7 +57,7 @@ export class CustomerSearchResultComponent implements OnInit, OnDestroy {
// scrollPos muss entfernt werden um die items anhand der QueryParams zu cachen
if (!isEqual(this.search.getQueryParams(), queryParams)) {
const params = { ...queryParams };
delete params.scrollPos;
delete params?.scrollPos;
const items = this.cache?.get<PagedResult<CustomerSearchType>>(params)?.result;
const hits = this.cache?.get<PagedResult<CustomerSearchType>>(params)?.hits;
this.search.setQueryParams({ params });
@@ -67,7 +67,7 @@ export class CustomerSearchResultComponent implements OnInit, OnDestroy {
}
// Nach dem setzen der Items im store an die letzte Position scrollen
setTimeout(() => this.scrollContainer.nativeElement.scrollTo(0, Number(queryParams.scrollPos ?? 0)), 0);
setTimeout(() => this.scrollContainer.nativeElement.scrollTo(0, Number(queryParams?.scrollPos ?? 0)), 0);
// Fügt Breadcrumb hinzu falls dieser noch nicht vorhanden ist
await this.breadcrumb.addBreadcrumbIfNotExists({

View File

@@ -105,7 +105,7 @@ export class GoodsInCleanupListComponent implements OnInit, OnDestroy {
for (const crumb of crumbs) {
this._breadcrumb.patchBreadcrumb(crumb.id, {
name: crumb.name,
params: { scroll_position: this.scrollContainer.scrollPos },
params: { scroll_position: this.scrollContainer?.scrollPos ?? 0 },
});
}
}

View File

@@ -73,22 +73,16 @@ export class GoodsInListStore extends ComponentStore<GoodsInListState> {
}).pipe(
tapResponse(
(res) => {
if (options.clear) {
this.patchState({
hits: res.hits,
results: res.result,
take: 25,
loading: false,
});
} else {
const items = this.get((s) => s.results);
this.patchState({
hits: res.hits,
results: [...items, ...res.result],
take: 25,
loading: false,
});
}
const result = res.result ?? [];
const items = options.clear ? result : [..._results, ...result];
this.patchState({
hits: res.hits,
results: items,
take: 25,
loading: false,
});
this._searchResultSubject.next(res);
if (res.hits > 1) {
const path = '/goods/in/list/';
@@ -98,6 +92,7 @@ export class GoodsInListStore extends ComponentStore<GoodsInListState> {
});
}
}
options?.cb?.call(undefined);
},
(err: Error) => {

View File

@@ -105,7 +105,7 @@ export class GoodsInReservationComponent implements OnInit, OnDestroy {
for (const crumb of crumbs) {
this._breadcrumb.patchBreadcrumb(crumb.id, {
name: crumb.name,
params: { scroll_position: this.scrollContainer.scrollPos, take: this._store.results?.length },
params: { scroll_position: this.scrollContainer?.scrollPos ?? 0, take: this._store.results?.length },
});
}
}

View File

@@ -127,7 +127,7 @@ export class GoodsOutSearchResultsComponent extends ComponentStore<GoodsOutSearc
}
async updateBreadcrumb(queryParams: Record<string, string> = this._goodsOutSearchStore.filter?.getQueryParams()) {
const scroll_position = this.scrollContainer.scrollPos;
const scroll_position = this.scrollContainer?.scrollPos;
const take = this._goodsOutSearchStore.results?.length;
if (queryParams) {

View File

@@ -218,6 +218,7 @@ export class TaskListComponent {
} as PrintModalData,
config: {
panelClass: [],
showScrollbarY: false,
},
});
}

View File

@@ -42,6 +42,7 @@ export class ArticleListModalComponent {
} as PrintModalData,
config: {
panelClass: [],
showScrollbarY: false,
},
});
}

View File

@@ -58,6 +58,7 @@ export class PdfViewerModalComponent {
data,
config: {
panelClass: [],
showScrollbarY: false,
},
});
};

View File

@@ -200,6 +200,7 @@ export class SharedGoodsInOutOrderDetailsItemComponent extends ComponentStore<Sh
this._modal.open({
content: HistoryComponent,
title: 'Historie',
config: { showScrollbarY: false },
data: {
mode: 'goods',
item: this.orderItem,