refactor: break ui up further down (#2292)

* refactor: break ui up further down

* permit loading even when authed

---------

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
Alex Inkin
2023-06-03 23:21:27 +04:00
committed by Aiden McClelland
parent 7213d82f1b
commit c3a52b3989
372 changed files with 361 additions and 443 deletions

View File

@@ -0,0 +1,23 @@
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core'
import { Observable, Subject, merge } from 'rxjs'
import { RefreshAlertService } from './refresh-alert.service'
@Component({
selector: 'refresh-alert',
templateUrl: './refresh-alert.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class RefreshAlertComponent {
private readonly dismiss$ = new Subject<boolean>()
readonly show$ = merge(this.dismiss$, this.refresh$)
constructor(
@Inject(RefreshAlertService) private readonly refresh$: Observable<boolean>,
) {}
onDismiss() {
this.dismiss$.next(false)
}
}