diff --git a/alcs-frontend/src/app/services/application/application-decision-condition-types/application-decision-condition-types.service.ts b/alcs-frontend/src/app/services/application/application-decision-condition-types/application-decision-condition-types.service.ts index 50a5f854bc..42bde8da01 100644 --- a/alcs-frontend/src/app/services/application/application-decision-condition-types/application-decision-condition-types.service.ts +++ b/alcs-frontend/src/app/services/application/application-decision-condition-types/application-decision-condition-types.service.ts @@ -48,9 +48,15 @@ export class ApplicationDecisionConditionTypesService { async update(code: string, updateDto: ApplicationDecisionConditionTypeDto) { try { - return await firstValueFrom( + const updatedDecisionConditionType = await firstValueFrom( this.http.patch(`${this.url}/${code}`, updateDto), ); + + if (updatedDecisionConditionType) { + this.toastService.showSuccessToast('Condition type updated successfully'); + } + + return updatedDecisionConditionType; } catch (e) { this.toastService.showErrorToast('Failed to update decision condition type'); console.error(e); diff --git a/alcs-frontend/src/app/services/notice-of-intent/notice-of-intent-decision-condition-types/notice-of-intent-decision-condition-types.service.ts b/alcs-frontend/src/app/services/notice-of-intent/notice-of-intent-decision-condition-types/notice-of-intent-decision-condition-types.service.ts index 66d23e13e5..42183eca66 100644 --- a/alcs-frontend/src/app/services/notice-of-intent/notice-of-intent-decision-condition-types/notice-of-intent-decision-condition-types.service.ts +++ b/alcs-frontend/src/app/services/notice-of-intent/notice-of-intent-decision-condition-types/notice-of-intent-decision-condition-types.service.ts @@ -48,9 +48,15 @@ export class NoticeofIntentDecisionConditionTypesService { async update(code: string, updateDto: NoticeOfIntentDecisionConditionTypeDto) { try { - return await firstValueFrom( + const updatedDecisionConditionType = await firstValueFrom( this.http.patch(`${this.url}/${code}`, updateDto), ); + + if (updatedDecisionConditionType) { + this.toastService.showSuccessToast('Condition type updated successfully'); + } + + return updatedDecisionConditionType; } catch (e) { this.toastService.showErrorToast('Failed to update decision condition type'); console.error(e);