mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1925: fix(remission-shared-search-item-to-remit-dialog): display context-aware feed...
fix(remission-shared-search-item-to-remit-dialog): display context-aware feedback message Update feedback dialog message to reflect the current remission state. Shows "Wurde zum Warenbegleitschein hinzugefügt" when remission is already started, otherwise shows "Wurde zur Remi Liste hinzugefügt". This provides users with more accurate feedback about where their items were added based on the current workflow state. Ref: #5300
This commit is contained in:
committed by
Andreas Schickinger
parent
7f4af304ac
commit
48f588f53b
@@ -17,6 +17,7 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
|
||||
import { isaActionPlus, isaActionClose } from '@isa/icons';
|
||||
import {
|
||||
RemissionSearchService,
|
||||
RemissionStore,
|
||||
ReturnItem,
|
||||
ReturnSuggestion,
|
||||
} from '@isa/remission/data-access';
|
||||
@@ -45,6 +46,7 @@ export interface QuantityAndReason {
|
||||
})
|
||||
export class SelectRemiQuantityAndReasonComponent {
|
||||
#remiService = inject(RemissionSearchService);
|
||||
#remiStore = inject(RemissionStore);
|
||||
#feedbackDialog = injectFeedbackDialog();
|
||||
host = inject(SearchItemToRemitDialogComponent);
|
||||
|
||||
@@ -176,7 +178,11 @@ export class SelectRemiQuantityAndReasonComponent {
|
||||
}
|
||||
|
||||
this.#feedbackDialog({
|
||||
data: { message: 'Wurde zur Remi Liste hinzugefügt' },
|
||||
data: {
|
||||
message: this.#remiStore.remissionStarted()
|
||||
? 'Wurde zum Warenbegleitschein hinzugefügt'
|
||||
: 'Wurde zur Remi Liste hinzugefügt',
|
||||
},
|
||||
});
|
||||
|
||||
this.host.close(result);
|
||||
|
||||
Reference in New Issue
Block a user