mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-24 23:26:39 +00:00
Fix for services
This commit is contained in:
parent
1b96d94384
commit
75dd47afac
@ -1,7 +1,9 @@
|
|||||||
import { Injectable, EventEmitter } from "@angular/core";
|
import { Injectable, EventEmitter } from "@angular/core";
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
export class MapSettingsService {
|
export class MapSettingsService {
|
||||||
public isScrollDisabled = new Subject<boolean>();
|
public isScrollDisabled = new Subject<boolean>();
|
||||||
public isMapLocked = new Subject<boolean>();
|
public isMapLocked = new Subject<boolean>();
|
||||||
|
@ -9,7 +9,9 @@ export interface Settings {
|
|||||||
console_command: string;
|
console_command: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Injectable()
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
export class SettingsService {
|
export class SettingsService {
|
||||||
static DEFAULTS: Settings = {
|
static DEFAULTS: Settings = {
|
||||||
crash_reports: true,
|
crash_reports: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user