Merge pull request #85 from AlineRinquin/aline
suppression de l'allerte que je peux pas faire plus placement footer partout
This commit is contained in:
commit
3d16635cef
@ -10,14 +10,10 @@ export class FicheContactComponent implements OnInit {
|
|||||||
@Input() personne: any;
|
@Input() personne: any;
|
||||||
@Output() clickDelete = new EventEmitter();
|
@Output() clickDelete = new EventEmitter();
|
||||||
parent: boolean;
|
parent: boolean;
|
||||||
isShow: boolean;
|
|
||||||
alert:any;
|
|
||||||
|
|
||||||
|
|
||||||
constructor(private tokenService: TokenService) {
|
constructor(private tokenService: TokenService) {
|
||||||
this.parent = false;
|
this.parent = false;
|
||||||
this.isShow = false;
|
|
||||||
this.alert = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
@ -30,8 +26,7 @@ export class FicheContactComponent implements OnInit {
|
|||||||
|
|
||||||
// supprime le contact
|
// supprime le contact
|
||||||
onClickDelete(numPerson: number){
|
onClickDelete(numPerson: number){
|
||||||
this.alert={"type":"succes", "content":"le contact a été supprimé mother fucker!!!!!!!!!"};
|
window.alert("Le contact à bien été supprimé!")
|
||||||
this.isShow = true;
|
|
||||||
this.clickDelete.emit(numPerson);
|
this.clickDelete.emit(numPerson);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,4 +97,5 @@
|
|||||||
</form>
|
</form>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
<app-footer></app-footer>
|
||||||
</div>
|
</div>
|
||||||
|
@ -89,4 +89,5 @@
|
|||||||
</form>
|
</form>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
<app-footer></app-footer>
|
||||||
</div>
|
</div>
|
@ -5,13 +5,7 @@
|
|||||||
<app-side-bar [backgroundColor]="'#5a1e63'"></app-side-bar>
|
<app-side-bar [backgroundColor]="'#5a1e63'"></app-side-bar>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<app-alert
|
<div class="col compte text-center py-3">
|
||||||
*ngIf="isShow"
|
|
||||||
[alert]="alert"
|
|
||||||
(eventClose)="onClickCloseAlert()"
|
|
||||||
></app-alert>
|
|
||||||
|
|
||||||
<div class="col compte text-center py-3 border">
|
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
*ngIf="parent"
|
*ngIf="parent"
|
||||||
@ -64,4 +58,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<app-footer></app-footer>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,9 +17,6 @@ export class PageRepertoireComponent implements OnInit {
|
|||||||
keyword: any;
|
keyword: any;
|
||||||
openDetails: any;
|
openDetails: any;
|
||||||
parent: boolean;
|
parent: boolean;
|
||||||
isShow: boolean;
|
|
||||||
alert:any;
|
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private repertoireService: RepertoireService,
|
private repertoireService: RepertoireService,
|
||||||
@ -31,8 +28,6 @@ export class PageRepertoireComponent implements OnInit {
|
|||||||
this.listFull = [];
|
this.listFull = [];
|
||||||
this.listContactInfo = '';
|
this.listContactInfo = '';
|
||||||
this.parent = false;
|
this.parent = false;
|
||||||
this.isShow = false;
|
|
||||||
this.alert = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
@ -50,7 +45,7 @@ export class PageRepertoireComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Méthode pour récuper ce qui est saisi dans l'input pour effectuer une recherche
|
// Méthode pour récuper ce qui est saisi dans l'input
|
||||||
onSearchChange(prenom: string): void {
|
onSearchChange(prenom: string): void {
|
||||||
this.keyword = prenom;
|
this.keyword = prenom;
|
||||||
if (prenom == '') {
|
if (prenom == '') {
|
||||||
@ -78,20 +73,12 @@ export class PageRepertoireComponent implements OnInit {
|
|||||||
onClickDelete(contactId: number){
|
onClickDelete(contactId: number){
|
||||||
this.repertoireService.deleteContact(contactId).subscribe((resp) => {
|
this.repertoireService.deleteContact(contactId).subscribe((resp) => {
|
||||||
if(contactId) {
|
if(contactId) {
|
||||||
this.alert={"type":"succes", "content":"le contact a été supprimé mother fucker!!!!!!!!!"};
|
|
||||||
this.isShow = true;
|
|
||||||
this.listContact.forEach(contactId => console.log(contactId))
|
this.listContact.forEach(contactId => console.log(contactId))
|
||||||
}else{
|
}else{
|
||||||
this.alert={"type":"danger", "content":"le contact n'a pas été supprimé"};
|
window.alert("Le contact ne peut pas être supprimé!")
|
||||||
this.isShow = true;
|
|
||||||
}
|
}
|
||||||
this.router.navigate(['repertoire/']);
|
this.router.navigate(['repertoire/']);
|
||||||
});
|
});
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
// methode pour fermer l'alert de message
|
|
||||||
onClickCloseAlert(){
|
|
||||||
this.isShow = ! this.isShow;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user