mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1913: feat(remission): refactor return receipt details and extract shared actions
feat(remission): refactor return receipt details and extract shared actions Refactor remission return receipt details to use return-based data flow instead of individual receipt fetching. Extract reusable action components for better code organization and consistency. - Remove deprecated fetchRemissionReturnReceipt method and schema - Add helper functions for extracting data from return objects - Replace receipt-specific components with return-based equivalents - Create shared return-receipt-actions library with reusable components - Update components to use modern Angular patterns (signals, computed) - Improve data flow consistency across remission features - Add comprehensive test coverage for new components - Update eager loading support in fetch return functionality The new architecture provides better data consistency and reduces code duplication by centralizing receipt actions and data extraction logic into reusable components. Refs: #5242, #5138, #5232, #5241
This commit is contained in:
committed by
Andreas Schickinger
parent
2e012a124a
commit
99e8e7cfe0
@@ -4,16 +4,14 @@ import { firstValueFrom } from 'rxjs';
|
||||
import { injectTabId } from '@isa/core/tabs';
|
||||
import { ReturnTaskListStore } from '@isa/oms/data-access';
|
||||
import { ReturnReviewComponent } from '../return-review.component';
|
||||
import { ConfirmationDialogComponent, injectDialog } from '@isa/ui/dialog';
|
||||
import { injectConfirmationDialog } from '@isa/ui/dialog';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class UncompletedTasksGuard
|
||||
implements CanDeactivate<ReturnReviewComponent>
|
||||
{
|
||||
#returnTaskListStore = inject(ReturnTaskListStore);
|
||||
#confirmationDialog = injectDialog(ConfirmationDialogComponent, {
|
||||
title: 'Aufgaben erledigen',
|
||||
});
|
||||
#confirmationDialog = injectConfirmationDialog();
|
||||
|
||||
processId = injectTabId();
|
||||
|
||||
@@ -45,6 +43,7 @@ export class UncompletedTasksGuard
|
||||
|
||||
async openDialog(): Promise<boolean> {
|
||||
const confirmDialogRef = this.#confirmationDialog({
|
||||
title: 'Aufgaben erledigen',
|
||||
data: {
|
||||
message:
|
||||
'Bitte schließen Sie die Aufgaben ab bevor Sie das die Rückgabe verlassen',
|
||||
|
||||
Reference in New Issue
Block a user