mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Add download location settings
This commit is contained in:
@@ -12,6 +12,7 @@ import { themes } from 'src-shared/Settings'
|
||||
export class SettingsComponent implements OnInit {
|
||||
@ViewChild('themeDropdown', { static: true }) themeDropdown: ElementRef
|
||||
|
||||
public chartFolderName: FormControl<string>
|
||||
public isSng: FormControl<boolean>
|
||||
public isCompactTable: FormControl<boolean>
|
||||
|
||||
@@ -37,6 +38,10 @@ export class SettingsComponent implements OnInit {
|
||||
private ref: ChangeDetectorRef
|
||||
) {
|
||||
const ss = settingsService
|
||||
|
||||
this.chartFolderName = new FormControl<string>(ss.chartFolderName, { nonNullable: true })
|
||||
this.chartFolderName.valueChanges.subscribe(value => ss.chartFolderName = value)
|
||||
|
||||
this.isSng = new FormControl<boolean>(ss.isSng, { nonNullable: true })
|
||||
this.isSng.valueChanges.subscribe(value => settingsService.isSng = value)
|
||||
this.isCompactTable = new FormControl<boolean>(settingsService.isCompactTable, { nonNullable: true })
|
||||
|
||||
Reference in New Issue
Block a user