117287: Fixed various layout issues

- The unthemed home news didn't stick to the header like the dspace theme
- Impersonate user button has additional margin
- Submission form loading icon is not translatable
- Create resource policy page doesn't have the correct heading

(cherry picked from commit 56e45a9f08)
This commit is contained in:
Alexandre Vryghem
2025-05-02 17:08:12 +02:00
parent c89ad9f22a
commit 7afe49d2b0
3 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<div class="container">
<h4 class="mb-3">{{'resource-policies.create.page.heading' | translate}} {{targetResourceName}}</h4>
<h1 class="mb-3">{{'resource-policies.create.page.heading' | translate}} {{targetResourceName}}</h1>
<ds-resource-policy-form [isProcessing]="isProcessing()"
(reset)="redirectToAuthorizationsPage()"

View File

@@ -26,7 +26,7 @@
</div>
<div class="submission-form-content">
<ds-themed-loading *ngIf="(isLoading$ | async) === true" message="Loading..."></ds-themed-loading>
<ds-themed-loading *ngIf="(isLoading$ | async) === true" [message]="'form.loading' | translate"></ds-themed-loading>
<ng-container *ngFor="let object of (submissionSections | async)">
<ds-submission-section-container [collectionId]="collectionId"
[submissionId]="submissionId"

View File

@@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component, NO_ERRORS_SCHEMA, SimpleChange } from '@angular/core';
import { ChangeDetectorRef, Component, SimpleChange } from '@angular/core';
import { ComponentFixture, inject, TestBed, waitForAsync } from '@angular/core/testing';
import { of as observableOf } from 'rxjs';
@@ -26,6 +26,7 @@ import { Item } from '../../core/shared/item.model';
import { TestScheduler } from 'rxjs/testing';
import { SectionsService } from '../sections/sections.service';
import { VisibilityType } from '../sections/visibility-type';
import { TranslateModule } from '@ngx-translate/core';
describe('SubmissionFormComponent', () => {
@@ -47,7 +48,9 @@ describe('SubmissionFormComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [],
imports: [
TranslateModule.forRoot(),
],
declarations: [
SubmissionFormComponent,
TestComponent
@@ -60,7 +63,6 @@ describe('SubmissionFormComponent', () => {
ChangeDetectorRef,
SubmissionFormComponent
],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
}));