mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Move isSng control to settings page
This commit is contained in:
@@ -3,7 +3,6 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
|
||||
import { FormControl } from '@angular/forms'
|
||||
|
||||
import { sortBy } from 'lodash'
|
||||
import { SearchService } from 'src-angular/app/core/services/search.service'
|
||||
import { environment } from 'src-angular/environments/environment'
|
||||
import { ChartData } from 'src-shared/interfaces/search.interface'
|
||||
import { driveLink } from 'src-shared/UtilFunctions'
|
||||
@@ -26,14 +25,9 @@ export class ChartSidebarMenutComponent implements OnInit {
|
||||
public reportMessage = ''
|
||||
|
||||
constructor(
|
||||
private searchService: SearchService,
|
||||
private http: HttpClient,
|
||||
) { }
|
||||
|
||||
get isSngControl() {
|
||||
return this.searchService.isSng
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.selectedVersion = new FormControl<ChartData>(this.displayVersions[0], { nonNullable: true })
|
||||
this.selectedVersion.valueChanges.subscribe(v => this.selectedVersionChanges.emit(v))
|
||||
|
||||
Reference in New Issue
Block a user