-
diff --git a/src/app/modules/settings/settings-dialog.ts b/src/app/modules/settings/settings-dialog.ts
index c8523953..2f5ff851 100644
--- a/src/app/modules/settings/settings-dialog.ts
+++ b/src/app/modules/settings/settings-dialog.ts
@@ -13,6 +13,13 @@ import { SettingsFacade } from './settings.facade';
export class SettingsDialog implements OnInit {
public display= { paths: false, favourites: false }
+ public menuItems= [
+ {href: "#sectDisplay", text: 'Display'},
+ {href: "#sectunits", text: 'Units & Values'},
+ {href: "#sectVessels", text: 'Vessels'},
+ {href: "#sectNotes", text: 'Notes'},
+ {href: "#sectVideo", text: 'Video'}
+ ];
constructor(
public facade: SettingsFacade,
@@ -26,6 +33,8 @@ export class SettingsDialog implements OnInit {
ngOnDestroy() { }
+ toggleFavourites() { this.display.favourites= (this.display.favourites) ? false : true }
+
onFormChange(e:any, f:any) {
if(!f.invalid) { this.facade.applySettings() }
else { console.warn('SETTINGS:','Form field invalid: Config NOT Saved!') }
diff --git a/src/app/modules/settings/settings.facade.ts b/src/app/modules/settings/settings.facade.ts
index 79078ac7..f252eed3 100644
--- a/src/app/modules/settings/settings.facade.ts
+++ b/src/app/modules/settings/settings.facade.ts
@@ -3,7 +3,7 @@
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
-import { AppInfo } from '../../app.info';
+import { AppInfo } from 'src/app/app.info';
import { SignalKClient } from 'signalk-client-angular';
@Injectable({ providedIn: 'root' })
diff --git a/src/app/modules/settings/settings.module.ts b/src/app/modules/settings/settings.module.ts
index d232912c..eabced2c 100644
--- a/src/app/modules/settings/settings.module.ts
+++ b/src/app/modules/settings/settings.module.ts
@@ -17,7 +17,6 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatSliderModule } from '@angular/material/slider';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatMenuModule } from '@angular/material/menu';
-import { MatToolbarModule } from '@angular/material/toolbar';
import { SettingsDialog } from './settings-dialog';
import { SignalKPreferredPathsComponent } from './components/signalk-preferredpaths.component';
@@ -28,7 +27,7 @@ import { SignalKPreferredPathsComponent } from './components/signalk-preferredpa
MatCheckboxModule, MatRadioModule, MatCardModule, MatListModule,
MatButtonModule, MatIconModule, MatTooltipModule,
MatSliderModule, MatSlideToggleModule, MatSelectModule,
- MatFormFieldModule, MatInputModule, MatMenuModule, MatToolbarModule
+ MatFormFieldModule, MatInputModule, MatMenuModule
],
declarations: [
SettingsDialog, SignalKPreferredPathsComponent
diff --git a/src/app/modules/skresources/grib/grib-components.ts b/src/app/modules/skresources/grib/grib-components.ts
index 7f4bb390..79d040ee 100644
--- a/src/app/modules/skresources/grib/grib-components.ts
+++ b/src/app/modules/skresources/grib/grib-components.ts
@@ -1,9 +1,9 @@
/** GRIB Components **
********************************/
-import { Component, OnInit, EventEmitter, Output } from '@angular/core';
+import { Component, OnInit, EventEmitter, Output, Input } from '@angular/core';
import { SKResources } from '../resources.service';
-import { GRIB_CATEGORIES } from './grib';
+import { GRIB_CATEGORIES, TEMPERATURE_GRADIENT, ColorGradient } from 'src/app/lib/grib';
/********* GRIBPanel **********/
@Component({
@@ -40,18 +40,22 @@ import { GRIB_CATEGORIES } from './grib';