@@ -355,7 +355,7 @@ export const pfConfigurationPortalModuleFields = {
355355 } = context
356356 return {
357357 label : i18n . t ( 'Authentication Sources' ) ,
358- text : i18n . t ( 'The sources to use in the module. If no sources are specified, all the sources of the connection profile will be used' ) ,
358+ text : i18n . t ( 'The sources to use in the module. If no sources are specified, all the sources of the connection profile will be used. ' ) ,
359359 fields : [
360360 {
361361 key : 'multi_source_ids' ,
@@ -497,44 +497,18 @@ export const pfConfigurationPortalModuleFields = {
497497 ]
498498 }
499499 } ,
500- source_id : ( context ) => {
501- const {
502- form = { } ,
503- options : {
504- meta = { }
505- } = { }
506- } = context
500+ source_id : ( { options : { meta = { } } } = { } ) => {
507501 return {
508- label : i18n . t ( 'Authentication Sources ' ) ,
509- text : i18n . t ( 'The sources to use in the module. If no sources are specified, all the sources of the connection profile will be used' ) ,
502+ label : i18n . t ( 'Authentication Source ' ) ,
503+ text : i18n . t ( 'The source to use in the module. If no source is specified, all the sources of the connection profile will be used. ' ) ,
510504 fields : [
511505 {
512506 key : 'source_id' ,
513- component : pfFormFields ,
507+ component : pfFormChosen ,
514508 attrs : {
515- buttonLabel : i18n . t ( 'Add Source' ) ,
516- // sortable: true,
517- field : {
518- component : pfField ,
519- attrs : {
520- field : {
521- component : pfFormChosen ,
522- attrs : {
523- ...pfConfigurationAttributesFromMeta ( meta , 'source_id' ) ,
524- ...{
525- placeholder : i18n . t ( 'Click to select a source' )
526- }
527- } ,
528- validators : {
529- ...pfConfigurationValidatorsFromMeta ( meta , 'source_id' , i18n . t ( 'Source' ) ) ,
530- ...{
531- [ i18n . t ( 'Duplicate source.' ) ] : conditional ( ( value ) => {
532- return ! ( form . source_id . filter ( v => v === value ) . length > 1 )
533- } )
534- }
535- }
536- }
537- }
509+ ...pfConfigurationAttributesFromMeta ( meta , 'source_id' , i18n . t ( 'Source' ) ) ,
510+ ...{
511+ placeholder : i18n . t ( 'Click to select a source' )
538512 }
539513 }
540514 }
0 commit comments