diff --git a/common/constants.js b/common/constants.js index 1849b731b946a42438e8a9be05c6233f2f85bf0a..f90d749f15be80159e09d5f65c9b2af2a08f78d0 100644 --- a/common/constants.js +++ b/common/constants.js @@ -58,6 +58,7 @@ } exports.CONST = { - REGIONAL_FEATURES: 'Regional features' + REGIONAL_FEATURES: 'Regional features', + NO_ADDIONTAL_INFO_AVAIL: `Currently, no additional information is linked to this region.` } })(typeof exports === 'undefined' ? module.exports : exports) diff --git a/src/ui/nehubaContainer/nehubaContainer.component.ts b/src/ui/nehubaContainer/nehubaContainer.component.ts index 5e13e5789c093cff93384f47b7dcb34b4291e4f3..bd425f8e38faea6829e498ec99dc0d94433d8a51 100644 --- a/src/ui/nehubaContainer/nehubaContainer.component.ts +++ b/src/ui/nehubaContainer/nehubaContainer.component.ts @@ -1,7 +1,6 @@ import { Component, ElementRef, Input, OnChanges, OnDestroy, OnInit, ViewChild, ChangeDetectorRef, Output, EventEmitter, Inject, Optional } from "@angular/core"; import { select, Store } from "@ngrx/store"; import { combineLatest, fromEvent, merge, Observable, of, Subscription, timer, asyncScheduler, BehaviorSubject, Subject } from "rxjs"; -import { pipe } from "rxjs/internal/util/pipe"; import { buffer, debounceTime, distinctUntilChanged, filter, map, mapTo, scan, shareReplay, skip, startWith, switchMap, switchMapTo, take, tap, withLatestFrom, delayWhen, throttleTime } from "rxjs/operators"; import { trigger, state, style, animate, transition } from '@angular/animations' import { MatDrawer } from "@angular/material/sidenav"; diff --git a/src/ui/nehubaContainer/nehubaContainer.template.html b/src/ui/nehubaContainer/nehubaContainer.template.html index 308aab6c1ffc4d07ff98690548a2f0a0766daaf7..69a1497ad788b73a16ad30b061ab35e51bb92a7b 100644 --- a/src/ui/nehubaContainer/nehubaContainer.template.html +++ b/src/ui/nehubaContainer/nehubaContainer.template.html @@ -387,7 +387,7 @@ <ng-template [ngIf]="iavDbDirective?.dataentries?.length === 0 && !(selectedParcellation?.hasAdditionalViewMode?.includes('connectivity'))"> <div class="p-4"> - No additional information on the selected region. + {{ CONST.NO_ADDIONTAL_INFO_AVAIL }} </div> </ng-template> diff --git a/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts b/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts index c65df9baadcdfb7e58d3b840f85353c9b7d0aa98..c20f8f143ad0e8f27928597e1ead856309d2fd2b 100644 --- a/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts +++ b/src/ui/nehubaContainer/nehubaViewer/nehubaViewer.component.ts @@ -1,6 +1,6 @@ -import { Component, ElementRef, EventEmitter, OnDestroy, OnInit, Output, Renderer2, Optional, Inject } from "@angular/core"; -import { fromEvent, Subscription, ReplaySubject, Subject, BehaviorSubject, Observable } from 'rxjs' -import { debounceTime, filter, map, scan, startWith, debounce, tap } from "rxjs/operators"; +import { Component, ElementRef, EventEmitter, OnDestroy, OnInit, Output, Inject } from "@angular/core"; +import { fromEvent, Subscription, ReplaySubject, BehaviorSubject, Observable } from 'rxjs' +import { debounceTime, filter, map, scan, startWith, debounce } from "rxjs/operators"; import { AtlasWorkerService } from "src/atlasViewer/atlasViewer.workerService.service"; import { StateInterface as ViewerConfiguration } from "src/services/state/viewerConfig.store"; import { getNgIdLabelIndexFromId } from "src/services/stateStore.service";