Skip to content
Snippets Groups Projects
Commit d661d051 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

fix(toastr): design feedbacks

parent df599071
No related branches found
No related tags found
4 merge requests!418V2.1.0,!400V2.0,!296fix(toastr): design feedbacks,!230V2.0
......@@ -8,6 +8,7 @@ import { Structure } from '../../models/structure.model';
import { StructureWithOwners } from '../../models/structureWithOwners.model';
import { User } from '../../models/user.model';
import { ProfileService } from '../../profile/services/profile.service';
import { NotificationService } from '../../services/notification.service';
import { PersonalOfferService } from '../../services/personal-offer.service';
import { StructureService } from '../../services/structure.service';
import { MustMatch } from '../../shared/validator/form';
......@@ -75,7 +76,8 @@ export class FormViewComponent implements OnInit {
private route: ActivatedRoute,
private profileService: ProfileService,
private structureService: StructureService,
private personalOfferService: PersonalOfferService
private personalOfferService: PersonalOfferService,
private notificationService: NotificationService
) {}
async ngOnInit(): Promise<void> {
......@@ -342,6 +344,7 @@ export class FormViewComponent implements OnInit {
let editStructure = this.editForm.value;
editStructure.hours = this.hoursForm.value;
this.structureService.editStructure(editStructure).subscribe(() => {
this.notificationService.showSuccess('Vos modifications ont bien été prises en compte.', '');
history.back();
});
}
......
......@@ -228,7 +228,6 @@ export class StructureFormComponent implements OnChanges, OnInit {
this.pagesValidation[structureFormStep.structureConsent] = {
valid: !this.isEditMode ? this.userAcceptSavedDate : true,
};
this.updatePageValid();
}
}
......
......@@ -85,7 +85,7 @@ a {
&::after {
content: url('/assets/ico/toast-success.svg') !important;
position: absolute !important;
top: 14px !important;
top: 5px !important;
left: 5px !important;
}
}
......@@ -97,7 +97,7 @@ a {
&::after {
content: url('assets/ico/toast-error.svg') !important;
position: absolute !important;
top: 14px !important;
top: 5px !important;
left: 5px !important;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment