|
|
|
@ -57,8 +57,8 @@ export class EnvoyerCarteComponent implements OnInit, OnDestroy {
|
|
|
|
|
subscription: Subscription;
|
|
|
|
|
|
|
|
|
|
validC: string;
|
|
|
|
|
//startAt = new Subject();
|
|
|
|
|
//endAt = new Subject();
|
|
|
|
|
// startAt = new Subject();
|
|
|
|
|
// endAt = new Subject();
|
|
|
|
|
/////
|
|
|
|
|
|
|
|
|
|
yearTest: number;
|
|
|
|
@ -438,7 +438,6 @@ export class EnvoyerCarteComponent implements OnInit, OnDestroy {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
carteExist(parUid) {
|
|
|
|
|
////////// not working
|
|
|
|
|
if (this.parSelect !== '' && this.carteExitDeja === false){
|
|
|
|
|
this.afDb.list('/CarteParrainage/', {
|
|
|
|
|
query: {
|
|
|
|
@ -451,7 +450,7 @@ export class EnvoyerCarteComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.carteExitDeja = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.carteExitDeja === false){
|
|
|
|
|
if (this.carteExitDeja === false) {
|
|
|
|
|
console.log('cestBon !!');
|
|
|
|
|
this.creerCartePar();
|
|
|
|
|
this.carteEnvoieOK = true;
|
|
|
|
|