Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgreiner committed Jun 25, 2024
1 parent 131157e commit b461a89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {NgModule, Injector, ApplicationRef} from "@angular/core";
import {NgModule, Injector, ApplicationRef, DoBootstrap} from "@angular/core";
import {NgxEditorModule} from "ngx-editor";
import {BrowserModule} from "@angular/platform-browser";
import {createCustomElement} from "@angular/elements";
Expand Down Expand Up @@ -237,12 +237,12 @@ import {ActionMenuComponent} from "./view/action-menu/action-menu/action-menu.co
],
})

export class AppModule {
export class AppModule implements DoBootstrap {
constructor(private injector: Injector) {}

ngDoBootstrap(appRef: ApplicationRef) {
if (environment.customElement) {
const element = createCustomElement(AppComponent, { injector: this.injector });
const element = createCustomElement(AppComponent, {injector: this.injector});
customElements.define("sbb-root", element);
} else {
appRef.bootstrap(AppComponent);
Expand Down
2 changes: 1 addition & 1 deletion src/app/models/operation.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum OperationType {
}

export abstract class Operation{
type: String;
type: string;
}

export class CreateTrainrunOperation extends Operation {
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/data/trainrunsection.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ export class TrainrunSectionService implements OnDestroy {
//this.trainrunSectionsUpdated();
this.trainrunService.trainrunsUpdated();

if (initialTrainrunsLength != this.trainrunService.trainrunsStore.trainruns.length) {
if (initialTrainrunsLength !== this.trainrunService.trainrunsStore.trainruns.length) {
this.operation.emit(new CreateTrainrunOperation(trainrunSection));
} else {
this.operation.emit(new UpdateTrainrunSectionsOperation(this.getAllTrainrunSectionsForTrainrun(trainrunSection.getTrainrunId())));
Expand Down
5 changes: 0 additions & 5 deletions src/app/services/data/version-control.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ export class VersionControlService implements OnDestroy {
this.undoService.reset(this.undoService.getCurrentVariantId() + 1);
}

@HostListener('window:message', ['$event']) onPostMessage(event) {
console.log('Message received', event);
}


reload(loadModel = false): void {
this.load(this.variant.id, loadModel);
}
Expand Down

0 comments on commit b461a89

Please sign in to comment.