{{ 'project.overview.dialog.deleteComponent.listMessage' | translate }}
@if (isLoading()) {{{ page.description }}
+{{ page.description }}
} @if (page.questions?.length) { diff --git a/src/app/features/registries/components/registries-metadata-step/registries-affiliated-institution/registries-affiliated-institution.component.html b/src/app/features/registries/components/registries-metadata-step/registries-affiliated-institution/registries-affiliated-institution.component.html index 4e5effc82..e6aee0113 100644 --- a/src/app/features/registries/components/registries-metadata-step/registries-affiliated-institution/registries-affiliated-institution.component.html +++ b/src/app/features/registries/components/registries-metadata-step/registries-affiliated-institution/registries-affiliated-institution.component.html @@ -1,9 +1,11 @@{{ 'project.overview.metadata.affiliatedInstitutionsDescription' | translate }}
+ @if (userInstitutions().length) {{{ 'project.overview.metadata.noAffiliatedInstitutions' | translate }}
+{{ 'common.labels.noAffiliatedInstitutions' | translate }}
}{{ page.description }}
+{{ page.description }}
} @if (page.questions?.length) { diff --git a/src/app/features/registry/components/archiving-message/archiving-message.component.ts b/src/app/features/registry/components/archiving-message/archiving-message.component.ts index 8e3e96293..3525ed5aa 100644 --- a/src/app/features/registry/components/archiving-message/archiving-message.component.ts +++ b/src/app/features/registry/components/archiving-message/archiving-message.component.ts @@ -8,7 +8,7 @@ import { ChangeDetectionStrategy, Component, inject, input } from '@angular/core import { ENVIRONMENT } from '@core/provider/environment.provider'; import { IconComponent } from '@osf/shared/components/icon/icon.component'; -import { RegistryOverview } from '../../models'; +import { RegistrationOverviewModel } from '../../models'; import { ShortRegistrationInfoComponent } from '../short-registration-info/short-registration-info.component'; @Component({ @@ -21,7 +21,7 @@ import { ShortRegistrationInfoComponent } from '../short-registration-info/short export class ArchivingMessageComponent { private readonly environment = inject(ENVIRONMENT); - registration = input.required{{ page.description }}
+ } + + @if (page.questions?.length) { +{{ section.description }}
+ } + + @if (section.questions?.length) { +{{ registration().registrationType }}
+{{ registration().registrationSupplement }}
{{ registration().dateWithdrawn | date }}
{{ registration().withdrawalJustification }}
{{ page.description }}
- } - - @if (page.questions?.length) { -{{ section.description }}
- } - @if (section.questions?.length) { -{{ 'project.overview.metadata.noAffiliatedInstitutions' | translate }}
+{{ 'common.labels.noAffiliatedInstitutions' | translate }}
} -{{ 'project.overview.metadata.getMoreCitations' | translate }}
+{{ styledCitation()?.citation }}
} +{{ 'common.labels.noDoi' | translate }}
+ } +} diff --git a/src/app/shared/components/resource-doi/resource-doi.component.scss b/src/app/shared/components/resource-doi/resource-doi.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/shared/components/resource-doi/resource-doi.component.spec.ts b/src/app/shared/components/resource-doi/resource-doi.component.spec.ts new file mode 100644 index 000000000..5dbf0fb17 --- /dev/null +++ b/src/app/shared/components/resource-doi/resource-doi.component.spec.ts @@ -0,0 +1,46 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { IdentifierModel } from '@osf/shared/models/identifiers/identifier.model'; + +import { ResourceDoiComponent } from './resource-doi.component'; + +import { MOCK_PROJECT_IDENTIFIERS } from '@testing/mocks/project-overview.mock'; + +describe('ResourceDoiComponent', () => { + let component: ResourceDoiComponent; + let fixture: ComponentFixture{{ 'common.labels.none' | translate }}
+ } + } +{{ 'project.overview.metadata.noTags' | translate }}
+ } + } +