nest new entries and message updates better (#1595)

* nest new entries and message updates better

* pass has new upward

* fix bulb display to make everyone happy
This commit is contained in:
Matt Hill
2022-06-30 15:32:54 -06:00
committed by GitHub
parent ee66395dfe
commit 7b465ce10b
6 changed files with 39 additions and 31 deletions

View File

@@ -13,6 +13,13 @@
color="primary"
></ion-spinner>
<ng-template #bulb>
<div class="bulb" [style.background-color]="color$ | async"></div>
<div
class="bulb"
[style.background-color]="
(disconnected$ | async)
? 'var(--ion-color-dark)'
: 'var(--ion-color-' + this.pkg.primaryRendering.color + ')'
"
></div>
</ng-template>
</ng-template>

View File

@@ -13,13 +13,7 @@ export class AppListIconComponent {
@Input()
pkg: PkgInfo
color$ = this.connectionService.watchDisconnected$().pipe(
map(disconnected => {
return disconnected
? 'var(--ion-color-dark)'
: 'var(--ion-color-' + this.pkg.primaryRendering.color + ')'
}),
)
disconnected$ = this.connectionService.watchDisconnected$()
constructor(private readonly connectionService: ConnectionService) {}
}