From 5b6c17476751cdd89dec9d0df9bb42f1554fd3fa Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Mon, 18 Mar 2024 17:48:08 +0100 Subject: [PATCH 1/8] [DURACOM-191] Fix withdrawn-reinstate-modal --- .../qa/events/ePerson-data/ePerson-data.component.ts | 2 ++ ...onent.ts => item-withdrawn-reinstate-modal.component.ts} | 6 +++++- .../dso-withdrawn-reinstate-modal.service.ts | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) rename src/app/shared/correction-suggestion/{withdrawn-reinstate-modal.component.ts => item-withdrawn-reinstate-modal.component.ts} (97%) diff --git a/src/app/notifications/qa/events/ePerson-data/ePerson-data.component.ts b/src/app/notifications/qa/events/ePerson-data/ePerson-data.component.ts index 8e7667911a..7fe17040e8 100644 --- a/src/app/notifications/qa/events/ePerson-data/ePerson-data.component.ts +++ b/src/app/notifications/qa/events/ePerson-data/ePerson-data.component.ts @@ -1,5 +1,6 @@ import { AsyncPipe, + NgFor, NgIf, } from '@angular/common'; import { @@ -21,6 +22,7 @@ import { standalone: true, imports: [ NgIf, + NgFor, AsyncPipe, ], styleUrls: ['./ePerson-data.component.scss'], diff --git a/src/app/shared/correction-suggestion/withdrawn-reinstate-modal.component.ts b/src/app/shared/correction-suggestion/item-withdrawn-reinstate-modal.component.ts similarity index 97% rename from src/app/shared/correction-suggestion/withdrawn-reinstate-modal.component.ts rename to src/app/shared/correction-suggestion/item-withdrawn-reinstate-modal.component.ts index 1c7e33718f..ab8cb689e8 100644 --- a/src/app/shared/correction-suggestion/withdrawn-reinstate-modal.component.ts +++ b/src/app/shared/correction-suggestion/item-withdrawn-reinstate-modal.component.ts @@ -1,4 +1,7 @@ -import { AsyncPipe } from '@angular/common'; +import { + AsyncPipe, + NgIf, +} from '@angular/common'; import { Component, EventEmitter, @@ -18,6 +21,7 @@ import { LoadingComponent } from '../loading/loading.component'; templateUrl: './item-withdrawn-reinstate-modal.component.html', styleUrls: ['./item-withdrawn-reinstate-modal.component.scss'], imports: [ + NgIf, TranslateModule, LoadingComponent, FormsModule, diff --git a/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts b/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts index c52b435af4..bc2cfba481 100644 --- a/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts +++ b/src/app/shared/dso-page/dso-withdrawn-reinstate-service/dso-withdrawn-reinstate-modal.service.ts @@ -3,15 +3,15 @@ import { Router } from '@angular/router'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { TranslateService } from '@ngx-translate/core'; import { take } from 'rxjs/operators'; -import { Item } from 'src/app/core/shared/item.model'; import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service'; import { ItemDataService } from '../../../core/data/item-data.service'; import { RemoteData } from '../../../core/data/remote-data'; import { QualityAssuranceEventDataService } from '../../../core/notifications/qa/events/quality-assurance-event-data.service'; import { QualityAssuranceEventObject } from '../../../core/notifications/qa/models/quality-assurance-event.model'; +import { Item } from '../../../core/shared/item.model'; import { getFirstCompletedRemoteData } from '../../../core/shared/operators'; -import { ItemWithdrawnReinstateModalComponent } from '../../correction-suggestion/withdrawn-reinstate-modal.component'; +import { ItemWithdrawnReinstateModalComponent } from '../../correction-suggestion/item-withdrawn-reinstate-modal.component'; import { NotificationsService } from '../../notifications/notifications.service'; export const REQUEST_WITHDRAWN = 'REQUEST/WITHDRAWN'; From 41c62e2478856cc2c55f1caec31fc1d790ae15fb Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Mon, 18 Mar 2024 17:57:01 +0100 Subject: [PATCH 2/8] [DURACOM-191] Fix batch import page --- .../file-dropzone-no-uploader.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shared/upload/file-dropzone-no-uploader/file-dropzone-no-uploader.component.html b/src/app/shared/upload/file-dropzone-no-uploader/file-dropzone-no-uploader.component.html index 3d1d2b3734..babfa91f0b 100644 --- a/src/app/shared/upload/file-dropzone-no-uploader/file-dropzone-no-uploader.component.html +++ b/src/app/shared/upload/file-dropzone-no-uploader/file-dropzone-no-uploader.component.html @@ -14,10 +14,10 @@

{{ fileObject.name }}

+ *ngIf="fileObject"> {{ fileObject?.name }}

{{ (fileObject === null ? dropMessageLabel : dropMessageLabelReplacement) | translate}} {{'uploader.or' | translate}} + aria-hidden="true"> {{ ((fileObject === null || fileObject === undefined) ? dropMessageLabel : dropMessageLabelReplacement) | translate}} {{'uploader.or' | translate}}