Skip to content

Commit 0a71edc

Browse files
committed
feat(admin-ui): implement finish button on client
1 parent a3cd54b commit 0a71edc

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

admin-ui/app/locales/en/translation.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"actions": {
33
"accept": "Accept",
4-
"add": "Add",
4+
"finish": "Finish"
5+
, "add": "Add",
56
"add_ldap_configuration": "Add LDAP Configuration",
67
"add_mapping":"Add Mapping",
78
"add_property": "Add property",

admin-ui/plugins/auth-server/components/Clients/ClientWizardForm.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ function ClientWizardForm({
428428
</CardBody>
429429
<CardFooter className="p-4 bt-0">
430430
<div className="d-flex">
431+
<div style={{flex:1}}>
431432
{currentStep !== sequence[0] && (
432433
<Button
433434
type="button"
@@ -440,31 +441,33 @@ function ClientWizardForm({
440441
{t('actions.previous')}
441442
</Button>
442443
)}
444+
</div>
445+
<div style={{flex:1, justifyContent:"flex-end", display:"flex"}}>
443446
{currentStep !== sequence[sequence.length - 1] && (
444447
<Button
445448
type="button"
446449
color={`primary-${selectedTheme}`}
447450
onClick={nextStep}
448451
style={applicationStyle.buttonStyle}
449-
className="ml-auto px-4"
452+
className="px-4"
450453
>
451454
{t('actions.next')}
452455
<i className="fa fa-angle-right ml-2"></i>
453456
</Button>
454457
)}
455-
{currentStep === sequence[sequence.length - 1] &&
456-
!viewOnly &&
458+
{!viewOnly &&
457459
hasPermission(permissions, CLIENT_WRITE) && (
458460
<Button
459461
type="button"
460462
color={`primary-${selectedTheme}`}
461-
className="ml-auto px-4"
463+
className="px-4 ml-2"
462464
onClick={toggle}
463465
style={applicationStyle.buttonStyle}
464466
>
465-
{t('actions.apply')}
467+
{t('actions.finish')}
466468
</Button>
467469
)}
470+
</div>
468471
</div>
469472
</CardFooter>
470473
<Button

0 commit comments

Comments
 (0)