Skip to content

Commit

Permalink
Clean up AppComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Nov 25, 2022
1 parent 06a4673 commit 5499250
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions desktop/src/app/components/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ChangeDetectorRef, Component, Renderer2 } from '@angular/core';
import { ChangeDetectorRef, Component } from '@angular/core';
import { Event, NavigationStart, Router } from '@angular/router';
import { I18n } from '@ngx-translate/i18n-polyfill';
import { Messages } from './messages/messages';
import { SettingsService } from '../services/settings/settings-service';
import { SettingsProvider } from '../services/settings/settings-provider';
import { Settings } from '../services/settings/settings';
import { MenuNavigator } from './menu-navigator';
import {UtilTranslations} from '../util/util-translations';
import {AppController} from '../services/app-controller';
import {ImageUrlMaker} from '../services/imagestore/image-url-maker';
import { UtilTranslations } from '../util/util-translations';
import { AppController } from '../services/app-controller';
import { ImageUrlMaker } from '../services/imagestore/image-url-maker';
import { ConfigurationChangeNotifications } from './configuration/notifications/configuration-change-notifications';

const remote = typeof window !== 'undefined' ? window.require('@electron/remote') : undefined;
Expand All @@ -29,17 +29,16 @@ export class AppComponent {
public alwaysShowClose = remote.getGlobal('switches').messages_timeout == undefined;

constructor(router: Router,
menuNavigator: MenuNavigator,
appController: AppController,
configurationChangeNotifications: ConfigurationChangeNotifications,
imageUrlMaker: ImageUrlMaker,
settingsService: SettingsService,
private messages: Messages,
private renderer: Renderer2,
private menuNavigator: MenuNavigator,
private i18n: I18n,
private utilTranslations: UtilTranslations,
private settingsProvider: SettingsProvider,
private changeDetectorRef: ChangeDetectorRef,
appController: AppController,
configurationChangeNotifications: ConfigurationChangeNotifications,
imageUrlMaker: ImageUrlMaker,
settingsService: SettingsService) {
private changeDetectorRef: ChangeDetectorRef) {

// To get rid of stale messages when changing routes.
// Note that if you want show a message to the user
Expand Down

0 comments on commit 5499250

Please sign in to comment.