From 3cedd0e0bd08e069d8d63035a578f7a03d2d80be Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Wed, 4 May 2022 13:23:28 -0700 Subject: [PATCH] add help text to user token detail --- .../src/screens/User/UserTokenDetail/UserTokenDetail.js | 3 +++ awx/ui/src/screens/User/shared/User.helptext.js | 8 ++++++++ awx/ui/src/screens/User/shared/UserTokenForm.js | 9 +++------ 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 awx/ui/src/screens/User/shared/User.helptext.js diff --git a/awx/ui/src/screens/User/UserTokenDetail/UserTokenDetail.js b/awx/ui/src/screens/User/UserTokenDetail/UserTokenDetail.js index f9b7753992..3e885bc984 100644 --- a/awx/ui/src/screens/User/UserTokenDetail/UserTokenDetail.js +++ b/awx/ui/src/screens/User/UserTokenDetail/UserTokenDetail.js @@ -12,6 +12,7 @@ import { TokensAPI } from 'api'; import { formatDateString } from 'util/dates'; import useRequest, { useDismissableError } from 'hooks/useRequest'; import { toTitleCase } from 'util/strings'; +import helptext from '../shared/User.helptext'; function UserTokenDetail({ token }) { const { scope, description, created, modified, expires, summary_fields } = @@ -37,6 +38,7 @@ function UserTokenDetail({ token }) { label={t`Application`} value={summary_fields?.application?.name} dataCy="application-token-detail-name" + helpText={helptext.application} /> {t`Application`} - + } touched={applicationMeta.touched} @@ -67,9 +66,7 @@ function UserTokenFormFields() { isRequired validated={!scopeMeta.touched || !scopeMeta.error ? 'default' : 'error'} label={t`Scope`} - labelIcon={ - - } + labelIcon={} >