add-to-collection-form works!
diff --git a/src/app/features/collections/components/add-to-collection-form/add-to-collection-form.component.ts b/src/app/features/collections/components/add-to-collection-form/add-to-collection-form.component.ts deleted file mode 100644 index 38a7ebba4..000000000 --- a/src/app/features/collections/components/add-to-collection-form/add-to-collection-form.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ChangeDetectionStrategy, Component } from '@angular/core'; - -@Component({ - selector: 'osf-add-to-collection-form', - imports: [], - templateUrl: './add-to-collection-form.component.html', - styleUrl: './add-to-collection-form.component.scss', - changeDetection: ChangeDetectionStrategy.OnPush, -}) -export class AddToCollectionFormComponent {} diff --git a/src/app/features/collections/components/add-to-collection/add-to-collection-confirmation-dialog/add-to-collection-confirmation-dialog.component.html b/src/app/features/collections/components/add-to-collection/add-to-collection-confirmation-dialog/add-to-collection-confirmation-dialog.component.html new file mode 100644 index 000000000..afa67d751 --- /dev/null +++ b/src/app/features/collections/components/add-to-collection/add-to-collection-confirmation-dialog/add-to-collection-confirmation-dialog.component.html @@ -0,0 +1,21 @@ ++ {{ 'collections.addToCollection.confirmationDialogMessage' | translate }} +
+ +{{ filterEntry.labelKey | translate }}
++ {{ collectionMetadataForm().get(filterEntry.key)?.value }} +
+{{ contributor.fullName }}
+ } +{{ 'collections.addToCollection.form.title' | translate }}
+{{ selectedProject()?.title }}
+{{ 'collections.addToCollection.form.description' | translate }}
++ {{ selectedProject()?.description ?? 'collections.addToCollection.noDescription' | translate }} +
+{{ 'collections.addToCollection.form.license' | translate }}
++ {{ projectLicense()?.name ?? 'collections.addToCollection.noLicense' | translate }} +
+{{ 'collections.addToCollection.form.tags' | translate }}
+{{ 'collections.addToCollection.noTags' | translate }}
+ } +{{ 'collections.addToCollection.projectMetadataMessage' | translate }}
+ ++ {{ 'collections.addToCollection.project' | translate }}: + {{ selectedProject()?.title }} +
+