Skip to content

Commit b461a89

Browse files
committed
fix lint errors
1 parent 131157e commit b461a89

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

src/app/app.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {NgModule, Injector, ApplicationRef} from "@angular/core";
1+
import {NgModule, Injector, ApplicationRef, DoBootstrap} from "@angular/core";
22
import {NgxEditorModule} from "ngx-editor";
33
import {BrowserModule} from "@angular/platform-browser";
44
import {createCustomElement} from "@angular/elements";
@@ -237,12 +237,12 @@ import {ActionMenuComponent} from "./view/action-menu/action-menu/action-menu.co
237237
],
238238
})
239239

240-
export class AppModule {
240+
export class AppModule implements DoBootstrap {
241241
constructor(private injector: Injector) {}
242242

243243
ngDoBootstrap(appRef: ApplicationRef) {
244244
if (environment.customElement) {
245-
const element = createCustomElement(AppComponent, { injector: this.injector });
245+
const element = createCustomElement(AppComponent, {injector: this.injector});
246246
customElements.define("sbb-root", element);
247247
} else {
248248
appRef.bootstrap(AppComponent);

src/app/models/operation.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ enum OperationType {
88
}
99

1010
export abstract class Operation{
11-
type: String;
11+
type: string;
1212
}
1313

1414
export class CreateTrainrunOperation extends Operation {

src/app/services/data/trainrunsection.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export class TrainrunSectionService implements OnDestroy {
699699
//this.trainrunSectionsUpdated();
700700
this.trainrunService.trainrunsUpdated();
701701

702-
if (initialTrainrunsLength != this.trainrunService.trainrunsStore.trainruns.length) {
702+
if (initialTrainrunsLength !== this.trainrunService.trainrunsStore.trainruns.length) {
703703
this.operation.emit(new CreateTrainrunOperation(trainrunSection));
704704
} else {
705705
this.operation.emit(new UpdateTrainrunSectionsOperation(this.getAllTrainrunSectionsForTrainrun(trainrunSection.getTrainrunId())));

src/app/services/data/version-control.service.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ export class VersionControlService implements OnDestroy {
7878
this.undoService.reset(this.undoService.getCurrentVariantId() + 1);
7979
}
8080

81-
@HostListener('window:message', ['$event']) onPostMessage(event) {
82-
console.log('Message received', event);
83-
}
84-
85-
8681
reload(loadModel = false): void {
8782
this.load(this.variant.id, loadModel);
8883
}

0 commit comments

Comments
 (0)