notif op en cours admin ok

thierry
Tmadkaud 7 years ago
parent 085359b8be
commit 5442c4dc83

@ -27,7 +27,7 @@ export class DemandeOpCommercialComponent implements OnInit, OnDestroy {
commercant: Commercant;
databaseRef: any;
tarifXJCParr: number;
tailleOpEncour: number;
constructor(public afAuth: AngularFireAuth, public afDb: AngularFireDatabase,
private router: Router, private authService: AuthService,
private opComService: OpCommercialService, private toastrService: ToastrService) {
@ -48,6 +48,16 @@ export class DemandeOpCommercialComponent implements OnInit, OnDestroy {
}
}).map((array) => array.reverse()) as FirebaseListObservable<any[]>;
this.opCommDataEnCours.$ref
.orderByChild('validationXJC')
.equalTo('En Cours')
.on('child_added', (child) => {
console.log('iiiii' + child);
this.toastrService.success("Nouvelle demande d'opération commerciale" );
});
this.opCommDataRejeter = this.afDb.list('/OperationCommercial/',{
query: {
orderByChild: 'validationXJC',

Loading…
Cancel
Save