diff --git a/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.html b/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.html index 4b56790c..85e6ad39 100644 --- a/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.html +++ b/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.html @@ -102,12 +102,28 @@ - - + --> + + + + + + + + + searchKey.length' (click)='onChangeInput()' + style="--background: white; background: transparent; margin-top: 4px; --background-hover: transparent !important;"> + {{"general, search" | translate}} + + + + diff --git a/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.ts b/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.ts index 3edd50f3..7081f384 100644 --- a/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.ts +++ b/Mohem/src/app/notification/work-list-replacement-itg/work-list-replacement-itg.component.ts @@ -269,7 +269,7 @@ export class WorkListReplacementItgComponent implements OnInit { "IsFavorite": selEmp.IsFavorite } ]; - this.saveUserFavruiteList(request); + this.saveUserFavruiteList(request, selEmp.IsFavorite); }, () => { }); } else { @@ -284,16 +284,21 @@ export class WorkListReplacementItgComponent implements OnInit { "IsFavorite": false } ]; - this.saveUserFavruiteList(request); + this.saveUserFavruiteList(request, false); } } - saveUserFavruiteList(request) { + saveUserFavruiteList(request, isFav: boolean) { this.worklistService.saveFavoriteList(request, () => { }).subscribe((result) => { if (this.cs.validResponse(result)) { - this.cs.toastPK("replacementRoll", "favorite-saved"); + if (isFav) { + this.cs.greenToastPK("replacementRoll", "favorite-saved"); + } else { + this.cs.redToastPK("replacementRoll", "favorite-unsaved"); + } + this.getFavruite(); } - }) + }); } getFavruite() { this.cs.startLoading(); diff --git a/Mohem/src/app/notification/work-list-replacement-roll/work-list-replacement-roll.component.html b/Mohem/src/app/notification/work-list-replacement-roll/work-list-replacement-roll.component.html index bddaf0ab..9de10209 100644 --- a/Mohem/src/app/notification/work-list-replacement-roll/work-list-replacement-roll.component.html +++ b/Mohem/src/app/notification/work-list-replacement-roll/work-list-replacement-roll.component.html @@ -69,7 +69,7 @@ - inputSearch.length' (click)='onChangeInput()' style="--background: white; background: transparent; padding-bottom: 20px; --background-hover: transparent !important;"> + inputSearch.length' (click)='onChangeInput()' style="--background: white; background: transparent; margin-top: 4px; --background-hover: transparent !important;"> {{"general, search" | translate}}
{{"general, search" | translate}}