From c853f4db9c142023071c7d940c40f7eba5e67ba4 Mon Sep 17 00:00:00 2001 From: David Hayes Date: Tue, 13 Apr 2021 23:38:04 -0700 Subject: [PATCH 1/3] set flow in setting title --- ext/authx/settings/authx.setting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/authx/settings/authx.setting.php b/ext/authx/settings/authx.setting.php index 5613bb2f06b9..18c2ab681942 100644 --- a/ext/authx/settings/authx.setting.php +++ b/ext/authx/settings/authx.setting.php @@ -54,7 +54,7 @@ 'class' => 'crm-select2', ], 'default' => ['jwt'], - 'title' => ts('Acceptable credentials (%s)'), + 'title' => ts('Acceptable credentials (%1)', [ 1 => $flow ]), 'help_text' => NULL, 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getCredentialTypes'], @@ -69,7 +69,7 @@ 'class' => 'crm-select2', ], 'default' => 'optional', - 'title' => ts('User account requirements (%s)'), + 'title' => ts('User account requirements (%1)', [ 1 => $flow]), 'help_text' => NULL, 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getUserModes'], From dce46b74cdf6bd98005bfcb185dd648116b390c7 Mon Sep 17 00:00:00 2001 From: David Hayes Date: Wed, 14 Apr 2021 00:03:50 -0700 Subject: [PATCH 2/3] consistent spacing --- ext/authx/settings/authx.setting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/authx/settings/authx.setting.php b/ext/authx/settings/authx.setting.php index 18c2ab681942..f46cbfecbe4c 100644 --- a/ext/authx/settings/authx.setting.php +++ b/ext/authx/settings/authx.setting.php @@ -69,7 +69,7 @@ 'class' => 'crm-select2', ], 'default' => 'optional', - 'title' => ts('User account requirements (%1)', [ 1 => $flow]), + 'title' => ts('User account requirements (%1)', [ 1 => $flow ]), 'help_text' => NULL, 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getUserModes'], From 7dcba4e2b9e4359812a6388bb822aaae8476686b Mon Sep 17 00:00:00 2001 From: David Hayes Date: Wed, 14 Apr 2021 09:32:23 -0700 Subject: [PATCH 3/3] fix styling per checks --- ext/authx/settings/authx.setting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/authx/settings/authx.setting.php b/ext/authx/settings/authx.setting.php index f46cbfecbe4c..8df39f62fff4 100644 --- a/ext/authx/settings/authx.setting.php +++ b/ext/authx/settings/authx.setting.php @@ -54,7 +54,7 @@ 'class' => 'crm-select2', ], 'default' => ['jwt'], - 'title' => ts('Acceptable credentials (%1)', [ 1 => $flow ]), + 'title' => ts('Acceptable credentials (%1)', [1 => $flow]), 'help_text' => NULL, 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getCredentialTypes'], @@ -69,7 +69,7 @@ 'class' => 'crm-select2', ], 'default' => 'optional', - 'title' => ts('User account requirements (%1)', [ 1 => $flow ]), + 'title' => ts('User account requirements (%1)', [1 => $flow]), 'help_text' => NULL, 'pseudoconstant' => [ 'callback' => ['\Civi\Authx\Meta', 'getUserModes'],