@@ -32,6 +32,7 @@ import {
32
32
GetAllContributors ,
33
33
InstitutionsSelectors ,
34
34
SubjectsSelectors ,
35
+ UpdateContributorsSearchValue ,
35
36
UpdateResourceInstitutions ,
36
37
UpdateResourceSubjects ,
37
38
} from '@osf/shared/stores' ;
@@ -165,6 +166,7 @@ export class MetadataComponent implements OnInit {
165
166
fetchSelectedSubjects : FetchSelectedSubjects ,
166
167
fetchChildrenSubjects : FetchChildrenSubjects ,
167
168
updateResourceSubjects : UpdateResourceSubjects ,
169
+ updateContributorsSearchValue : UpdateContributorsSearchValue ,
168
170
} ) ;
169
171
170
172
isLoading = computed ( ( ) => {
@@ -336,16 +338,18 @@ export class MetadataComponent implements OnInit {
336
338
this . customDialogService
337
339
. open ( ContributorsDialogComponent , {
338
340
header : this . translateService . instant ( 'project.metadata.contributors.editContributors' ) ,
339
- breakpoints : { '768px' : '95vw' } ,
340
341
data : {
341
342
resourceId : this . resourceId ,
342
343
resourceType : this . resourceType ( ) ,
343
344
} ,
344
345
} )
345
- . onClose . pipe ( filter ( ( result ) => ! ! result ) )
346
- . subscribe ( ( ) => {
347
- this . actions . getResourceMetadata ( this . resourceId , this . resourceType ( ) ) ;
348
- this . toastService . showSuccess ( 'project.metadata.contributors.updateSucceed' ) ;
346
+ . onClose . subscribe ( ( result ) => {
347
+ if ( result ) {
348
+ this . actions . getResourceMetadata ( this . resourceId , this . resourceType ( ) ) ;
349
+ this . toastService . showSuccess ( 'project.metadata.contributors.updateSucceed' ) ;
350
+ }
351
+
352
+ this . actions . updateContributorsSearchValue ( null ) ;
349
353
} ) ;
350
354
}
351
355
0 commit comments