Chore: refactor loading stuff to be more DRY

This commit is contained in:
shamoon committed 2024-12-09 12:57:58 -08:00
1 parent c2e34b36ce
commit 0a7c296194
34 files changed
+87 -110

No files matched your search

@@ -29,8 +29,8 @@ describe('LoadingComponentWithPermissions', () => {
expect(component.loading).toBeTruthy()
})
it('should have reveal set to false by default', () => {
expect(component.reveal).toBeFalsy()
it('should have show set to false by default', () => {
expect(component.show).toBeFalsy()
})
it('should call next and complete on unsubscribeNotifier with itself on destroy', () => {
@@ -8,7 +8,7 @@ export abstract class LoadingComponentWithPermissions
implements OnDestroy
{
public loading: boolean = true
public reveal: boolean = false
public show: boolean = false
protected unsubscribeNotifier: Subject<any> = new Subject()