Merge remote-tracking branch 'origin/main' into more-eslint

This commit is contained in:
Yury Bondarenko
2024-03-07 09:56:55 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<div class="col-12"> <div class="col-12">
<h1 class="border-bottom">{{'item.edit.head' | translate}}</h1> <h1 class="border-bottom">{{'item.edit.head' | translate}}</h1>
<div class="pt-2"> <div class="pt-2">
<ul class="nav nav-tabs justify-content-start" role="tablist"> <ul *ngIf="pages.length > 0" class="nav nav-tabs justify-content-start" role="tablist">
<li *ngFor="let page of pages" class="nav-item" role="presentation"> <li *ngFor="let page of pages" class="nav-item" role="presentation">
<a *ngIf="(page.enabled | async)" <a *ngIf="(page.enabled | async)"
[attr.aria-selected]="page.page === currentPage" [attr.aria-selected]="page.page === currentPage"

View File

@@ -14,6 +14,7 @@ import {
import { import {
combineLatest, combineLatest,
Observable, Observable,
of,
} from 'rxjs'; } from 'rxjs';
import { import {
map, map,
@@ -174,6 +175,8 @@ export class ItemPageComponent implements OnInit, OnDestroy {
switchMap((coarLdnEnabled: boolean) => { switchMap((coarLdnEnabled: boolean) => {
if (coarLdnEnabled) { if (coarLdnEnabled) {
return this.notifyInfoService.getCoarLdnLocalInboxUrls(); return this.notifyInfoService.getCoarLdnLocalInboxUrls();
} else {
return of([]);
} }
}), }),
); );