diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c05840e..11dbfe6 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -2,7 +2,7 @@ import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { MatSlideToggle } from '@angular/material/slide-toggle'; import { KeycloakProfile } from 'keycloak-js'; import { Deployment } from './shared'; -import { DataService, EntryService, OidcService, ParcoursService, StateService, TrackRecorderService } from './services'; +import { DataService, NoteService, OidcService, ParcoursService, StateService, TrackRecorderService } from './services'; import pkgJson from '../../package.json'; import { AudioService } from './services/audio.service'; import { StackService } from './services/stack.service'; @@ -31,7 +31,7 @@ export class AppComponent implements OnInit, AfterViewInit { public stackService: StackService, public trackRecorder: TrackRecorderService, public audioService: AudioService, - private entryService: EntryService, + private noteService: NoteService, public dataService: DataService, public state: StateService, public authService: OidcService, @@ -44,8 +44,8 @@ export class AppComponent implements OnInit, AfterViewInit { } ngAfterViewInit() { - this.entryService.active.subscribe(state => this.toggleAddMarkers.checked = state); - this.toggleAddMarkers.change.subscribe(() => this.entryService.toggle()); + this.noteService.active.subscribe(state => this.toggleAddMarkers.checked = state); + this.toggleAddMarkers.change.subscribe(() => this.noteService.toggle()); this.toggleDebugView.change.subscribe(state => this.state.setDebugView(state.checked)); } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ae49bfb..2e1e929 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,7 +15,7 @@ import { KeycloakAngularModule, KeycloakService } from 'keycloak-angular'; import { MAP_STYLE_CONFIG } from './shared/configuration'; import { RecordControlComponent } from './components/record-control/record-control.component'; import { LoginComponent } from './components/login/login.component'; -import { EntryFormComponent } from './components/entry-form/entry-form.component'; +import { NoteFormComponent } from './components/entry-form/entry-form.component'; import { InfoComponent } from './components/info/info.component'; import { StackFadeComponent } from './components/stack-fade/stack-fade.component'; import { DistanceWarningDialogComponent } from './components/distance-warning-dialog.component'; @@ -62,7 +62,7 @@ function initializeKeycloak(keycloak: KeycloakService) { MapComponent, RecordControlComponent, LoginComponent, - EntryFormComponent, + NoteFormComponent, InfoComponent, StackFadeComponent, DistanceWarningDialogComponent, diff --git a/src/app/components/entry-form/entry-form.component.html b/src/app/components/entry-form/entry-form.component.html index 5e86f62..1e43eb3 100644 --- a/src/app/components/entry-form/entry-form.component.html +++ b/src/app/components/entry-form/entry-form.component.html @@ -1,14 +1,14 @@ -