diff --git a/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.ts b/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.ts index 149ca269f9f..d48b5931cd0 100644 --- a/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.ts +++ b/apps/web/src/app/organizations/shared/components/collection-dialog/collection-dialog.component.ts @@ -36,6 +36,7 @@ export interface CollectionDialogParams { collectionId?: string; organizationId: string; initialTab?: CollectionDialogTabType; + parentCollectionId?: string; } export enum CollectionDialogResult { @@ -133,6 +134,8 @@ export class CollectionDialogComponent implements OnInit, OnDestroy { }); } else { this.nestOptions = collections; + const parent = collections.find((c) => c.id === this.params.parentCollectionId); + this.formGroup.patchValue({ parent: parent?.name ?? null }); } this.loading = false; diff --git a/apps/web/src/app/organizations/vault/vault.component.html b/apps/web/src/app/organizations/vault/vault.component.html index bc63b5b9187..9445a254f2c 100644 --- a/apps/web/src/app/organizations/vault/vault.component.html +++ b/apps/web/src/app/organizations/vault/vault.component.html @@ -16,7 +16,7 @@
-
-