feat: enhance store layout with dynamic logo handling and loading states
This commit is contained in:
@@ -44,6 +44,7 @@ describe('TenantService', () => {
|
||||
|
||||
await expect(bootstrapPromise).resolves.toEqual(response.data);
|
||||
expect(service.tenant()).toEqual(response.data);
|
||||
expect(service.getTenant()).toEqual(response.data);
|
||||
|
||||
httpController.verify();
|
||||
});
|
||||
@@ -81,6 +82,7 @@ describe('TenantService', () => {
|
||||
|
||||
await expect(service.bootstrap()).resolves.toBeNull();
|
||||
expect(service.tenant()).toBeNull();
|
||||
expect(service.getTenant()).toBeNull();
|
||||
|
||||
httpController.expectNone(() => true);
|
||||
httpController.verify();
|
||||
|
||||
@@ -16,6 +16,10 @@ export class TenantService {
|
||||
|
||||
readonly tenant = this.tenantState.asReadonly();
|
||||
|
||||
getTenant(): Tenant | null {
|
||||
return this.tenantState();
|
||||
}
|
||||
|
||||
async bootstrap(): Promise<Tenant | null> {
|
||||
if (!isPlatformBrowser(this.platformId)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user