-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show multiple files settings button is moved to settings modal
- Loading branch information
1 parent
adeb370
commit 858e383
Showing
13 changed files
with
158 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/app/debug/table/table-settings-modal/table-settings-modal.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
.fa-info-circle:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.checkbox { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
/*margin: 0 1rem 0 0;*/ | ||
/*font-size: 10pt;*/ | ||
cursor: default !important; | ||
height: fit-content; | ||
|
||
> input { | ||
margin-left: 0.25rem; | ||
} | ||
|
||
> label { | ||
margin-bottom: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
|
||
import { SettingsService } from './settings.service'; | ||
|
||
describe('SettingsService', () => { | ||
let service: SettingsService; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({}); | ||
service = TestBed.inject(SettingsService); | ||
}); | ||
|
||
it('should be created', () => { | ||
expect(service).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Observable, ReplaySubject, Subject } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class SettingsService { | ||
constructor() { | ||
this.loadSettingsFromLocalStorage(); | ||
} | ||
|
||
//Show multiple files in debug tre | ||
private showMultipleAtATimeKey: string = 'showMultipleFilesAtATime'; | ||
private showMultipleAtATime: boolean = false; | ||
private showMultipleAtATimeSubject: Subject<boolean> = new ReplaySubject(1); | ||
public showMultipleAtATimeObservable: Observable<boolean> = this.showMultipleAtATimeSubject.asObservable(); | ||
|
||
public setShowMultipleAtATime(value: boolean): void { | ||
this.showMultipleAtATime = value; | ||
this.showMultipleAtATimeSubject.next(this.showMultipleAtATime); | ||
localStorage.setItem(this.showMultipleAtATimeKey, String(this.showMultipleAtATime)); | ||
} | ||
|
||
private loadSettingsFromLocalStorage(): void { | ||
this.setShowMultipleAtATime(Boolean(localStorage.getItem(this.showMultipleAtATimeKey))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters