@@ -69,6 +69,7 @@ export class AddContributorDialogComponent implements OnInit, OnDestroy {
6969 readonly selectedUsers = signal < ContributorAddModel [ ] > ( [ ] ) ;
7070 readonly components = signal < ComponentCheckboxItemModel [ ] > ( [ ] ) ;
7171 readonly resourceName = signal < string > ( '' ) ;
72+ readonly parentResourceName = signal < string > ( '' ) ;
7273 readonly allowAddingContributorsFromParentProject = signal < boolean > ( false ) ;
7374
7475 readonly contributorNames = computed ( ( ) =>
@@ -134,7 +135,8 @@ export class AddContributorDialogComponent implements OnInit, OnDestroy {
134135 private initializeDialogData ( ) : void {
135136 this . selectedUsers . set ( [ ] ) ;
136137
137- const { components, resourceName, allowAddingContributorsFromParentProject } = this . config . data || { } ;
138+ const { components, resourceName, parentResourceName, allowAddingContributorsFromParentProject } =
139+ this . config . data || { } ;
138140
139141 if ( components ) {
140142 this . components . set ( components ) ;
@@ -147,6 +149,10 @@ export class AddContributorDialogComponent implements OnInit, OnDestroy {
147149 if ( allowAddingContributorsFromParentProject ) {
148150 this . allowAddingContributorsFromParentProject . set ( allowAddingContributorsFromParentProject ) ;
149151 }
152+
153+ if ( parentResourceName ) {
154+ this . parentResourceName . set ( parentResourceName ) ;
155+ }
150156 }
151157
152158 private closeDialogWithData ( AddContributorTypeValue = AddContributorType . Registered ) : void {
0 commit comments