2018-04-04 16:08:30 +02:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
2021-06-07 19:25:37 +02:00
|
|
|
import { EnvironmentService } from 'jslib-common/abstractions/environment.service';
|
|
|
|
import { I18nService } from 'jslib-common/abstractions/i18n.service';
|
|
|
|
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
|
2018-04-04 16:08:30 +02:00
|
|
|
|
2021-06-07 19:25:37 +02:00
|
|
|
import { EnvironmentComponent as BaseEnvironmentComponent } from 'jslib-angular/components/environment.component';
|
2018-04-04 16:08:30 +02:00
|
|
|
|
|
|
|
@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 06:21:22 +02:00
|
|
|
constructor(platformUtilsService: PlatformUtilsService, environmentService: EnvironmentService,
|
|
|
|
i18nService: I18nService, private router: Router) {
|
|
|
|
super(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
|
|
|
}
|
|
|
|
}
|