From 6cf195a27eb90cb1743fa211c966fcb2af9a4929 Mon Sep 17 00:00:00 2001 From: nixocio Date: Thu, 28 May 2020 10:26:44 -0400 Subject: [PATCH] Add Wizard buttons as internationalization See: https://www.patternfly.org/v4/documentation/react/components/wizard#props See: https://github.com/ansible/awx/issues/7170 --- awx/ui_next/src/components/AddRole/AddResourceRole.jsx | 2 ++ awx/ui_next/src/components/LaunchPrompt/LaunchPrompt.jsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/awx/ui_next/src/components/AddRole/AddResourceRole.jsx b/awx/ui_next/src/components/AddRole/AddResourceRole.jsx index 6290f300f2..639a6e8128 100644 --- a/awx/ui_next/src/components/AddRole/AddResourceRole.jsx +++ b/awx/ui_next/src/components/AddRole/AddResourceRole.jsx @@ -312,6 +312,8 @@ class AddResourceRole extends React.Component { steps={steps} title={wizardTitle} nextButtonText={currentStep.nextButtonText || undefined} + backButtonText={i18n._(t`Back`)} + cancelButtonText={i18n._(t`Cancel`)} /> ); } diff --git a/awx/ui_next/src/components/LaunchPrompt/LaunchPrompt.jsx b/awx/ui_next/src/components/LaunchPrompt/LaunchPrompt.jsx index 71d441e572..4f4e1002e5 100644 --- a/awx/ui_next/src/components/LaunchPrompt/LaunchPrompt.jsx +++ b/awx/ui_next/src/components/LaunchPrompt/LaunchPrompt.jsx @@ -74,6 +74,9 @@ function LaunchPrompt({ config, resource, onLaunch, onCancel, i18n }) { }} title={i18n._(t`Prompts`)} steps={steps} + backButtonText={i18n._(t`Back`)} + cancelButtonText={i18n._(t`Cancel`)} + nextButtonText={i18n._(t`Next`)} /> )}