import { Component } from "@angular/core" ; import { Router } from "@angular/router" ; import { EnvironmentService } from "jslib-common/abstractions/environment.service" ; import { I18nService } from "jslib-common/abstractions/i18n.service" ; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service" ; import { EnvironmentComponent as BaseEnvironmentComponent } from "jslib-angular/components/environment.component" ; @ Component ( { selector : "app-environment" , templateUrl : "environment.component.html" , } ) export class EnvironmentComponent extends BaseEnvironmentComponent { constructor ( platformUtilsService , environmentService , i18nService , private router ) { super ( platformUtilsService , environmentService , i18nService ) ; this . showCustom = true ; } saved ( ) { super . saved ( ) ; this . router . navigate ( [ "" ] ) ; } }