gns3-web-ui/src/app/services/mapsettings.service.ts

19 lines
436 B
TypeScript
Raw Normal View History

2019-06-24 06:24:38 -07:00
import { Injectable } from "@angular/core";
import { Subject } from 'rxjs';
@Injectable()
2019-08-21 06:32:44 -07:00
export class MapSettingsService {
2019-06-24 06:24:38 -07:00
public isMapLocked = new Subject<boolean>();
2019-08-21 06:32:44 -07:00
public isTopologySummaryVisible: boolean = false;
2019-06-24 06:24:38 -07:00
constructor() {}
changeMapLockValue(value: boolean) {
this.isMapLocked.next(value);
}
2019-08-21 06:32:44 -07:00
toggleTopologySummary(value: boolean) {
this.isTopologySummaryVisible = value;
}
2019-06-24 06:24:38 -07:00
}