2018-04-04 16:08:30 +02:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
import { Angulartics2 } from 'angulartics2';
|
|
|
|
|
|
|
|
import { EnvironmentService } from 'jslib/abstractions/environment.service';
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
2018-10-03 05:33:56 +02:00
|
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
2018-04-04 16:08:30 +02:00
|
|
|
|
|
|
|
import { EnvironmentComponent as BaseEnvironmentComponent } from 'jslib/angular/components/environment.component';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-environment',
|
2018-04-06 17:48:45 +02:00
|
|
|
templateUrl: 'environment.component.html',
|
2018-04-04 16:08:30 +02:00
|
|
|
})
|
|
|
|
export class EnvironmentComponent extends BaseEnvironmentComponent {
|
2018-10-03 05:33:56 +02:00
|
|
|
constructor(analytics: Angulartics2, platformUtilsService: PlatformUtilsService,
|
2018-04-04 16:08:30 +02:00
|
|
|
environmentService: EnvironmentService, i18nService: I18nService,
|
|
|
|
private router: Router) {
|
2018-10-03 05:33:56 +02:00
|
|
|
super(analytics, platformUtilsService, environmentService, i18nService);
|
2018-04-04 20:19:44 +02:00
|
|
|
this.showCustom = true;
|
2018-04-04 16:08:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
saved() {
|
|
|
|
super.saved();
|
2018-04-04 20:19:44 +02:00
|
|
|
this.router.navigate(['']);
|
2018-04-04 16:08:30 +02:00
|
|
|
}
|
|
|
|
}
|