diff --git a/src/app/formulaManager/formulaManager.component.html b/src/app/formulaManager/formulaManager.component.html index ccb910e..e0cc1f9 100644 --- a/src/app/formulaManager/formulaManager.component.html +++ b/src/app/formulaManager/formulaManager.component.html @@ -1,6 +1,6 @@
-
-
+
+
-
-
- - - search - - - - - {{f.name}} - - -
-
-
-
+
+
+

Standalone

Download Formula Manager 2.0


@@ -44,47 +31,63 @@
-
- - - - - - - - - - - - - - -
NameQuantityCost
{{c.component?.name}}{{c.quantity | scale: formula.total : _newTotal | convertFromG: unit}} {{unit}}{{c.quantity | scale: formula.total : _newTotal / 1000 * c.component.cost | currency}}
-
- + + +
+
+ + + search + + + + + {{f.name}} + + +
+
+

{{formula.name}}

+ Created: {{formula.created | date}} +
+ - - - + + + -
- - - - - - g - oz - kg - lb - - - - - - - NameQuantityCost
-
+ + + + {{c.component?.name}} + {{c.quantity | scale: formula.total : _newTotal | convertFromG: unit}} {{unit}} + {{c.quantity | scale: formula.total : _newTotal / 1000 * c.component.cost | currency}} + + +
+ + + + + + +
+ + + + + + g + oz + kg + lb + + + + + + +
\ No newline at end of file diff --git a/src/app/formulaManager/formulaManager.component.ts b/src/app/formulaManager/formulaManager.component.ts index 401b7d3..72e1ef9 100644 --- a/src/app/formulaManager/formulaManager.component.ts +++ b/src/app/formulaManager/formulaManager.component.ts @@ -1,17 +1,22 @@ import {Component, ElementRef, ViewChildren, HostListener} from '@angular/core'; -import {AngularFirestore} from 'angularfire2/firestore'; import {ConvertFromGPipe, ConvertToGPipe} from './units.pipe'; import {ElectronService} from 'ngx-electron'; import {LocalStorage} from 'webstorage-decorators'; import {MatDialog} from '@angular/material'; import {ViewComponents} from './viewComponents/viewComponents.component'; -import {AngularFireAuth} from 'angularfire2/auth'; import {NewFormulaComponent} from './newFormula/newFormula.component'; import {AppStore} from '../app.store'; @Component({ selector: 'formula-manager', - templateUrl: './formulaManager.component.html' + templateUrl: './formulaManager.component.html', + styles: [ + ` + .active { + background-color: #f0f0f0; + } + ` + ] }) export class FormulaManagerComponent { formula;