Removed useless code
This commit is contained in:
parent
fa97488b50
commit
0286c3ce14
@ -45,11 +45,9 @@ export class FormulaManagerComponent {
|
|||||||
this.$breakpoint.observe(Breakpoints.Handset).subscribe(e => this.mobile = e.matches);
|
this.$breakpoint.observe(Breakpoints.Handset).subscribe(e => this.mobile = e.matches);
|
||||||
}
|
}
|
||||||
|
|
||||||
async approve(formula) {
|
approve(formula) {
|
||||||
formula.approved = true;
|
formula.approved = true;
|
||||||
await formula.ref.update({approved: true, approvedOn: firebase.firestore.FieldValue.serverTimestamp()});
|
formula.ref.update({approved: true, approvedOn: firebase.firestore.FieldValue.serverTimestamp()});
|
||||||
await this.store.formulas.toPromise();
|
|
||||||
this.ngZone.runTask(() => this.displayFormula(formula));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cost() {
|
cost() {
|
||||||
|
Loading…
Reference in New Issue
Block a user