diff --git a/docs/releases/v2.6.0.md b/docs/releases/v2.6.0.md index 95fd0880cd9a39f3cf23c3897ef34944f315ce6f..90f139cfc720729684972e5cc609ea6bc8be60ea 100644 --- a/docs/releases/v2.6.0.md +++ b/docs/releases/v2.6.0.md @@ -11,3 +11,4 @@ - added visual indication when a new template is being loaded - reworked visual for `supported template` in region side panel - improve performance by disabling `zone.js` patch of `requestAnimationFrame` and change detection strategy of nehuba viewer +- added message when no regional features found (#1111) diff --git a/src/atlasComponents/regionalFeatures/bsFeatures/regionalFeatureWrapper/regionalFeatureWrapper.template.html b/src/atlasComponents/regionalFeatures/bsFeatures/regionalFeatureWrapper/regionalFeatureWrapper.template.html index adecf93c84ab9c417168b4588e1aef63e4bb55e0..020145c3c36c406a74c3575422068d0b43700892 100644 --- a/src/atlasComponents/regionalFeatures/bsFeatures/regionalFeatureWrapper/regionalFeatureWrapper.template.html +++ b/src/atlasComponents/regionalFeatures/bsFeatures/regionalFeatureWrapper/regionalFeatureWrapper.template.html @@ -33,9 +33,17 @@ [attr.aria-label]="ARIA_LABELS.LIST_OF_DATASETS_ARIA_LABEL"> <!-- if busy, show spinner --> - <ng-template [ngIf]="busy$ | async"> + <ng-template [ngIf]="busy$ | async" [ngIfElse]="notBusyTmpl"> <ng-template [ngTemplateOutlet]="busyTmpl"></ng-template> </ng-template> + + <ng-template #notBusyTmpl> + <ng-template [ngIf]="registeredFeatures.length === 0"> + <span class="text-muted"> + No regional features found. + </span> + </ng-template> + </ng-template> <div *ngFor="let feature of registeredFeatures; let index = index" class="overflow-hidden">