Fix minor UI issues

Fix minor UI issues

* fix typo
* add string to be translated
* remove not necessary `await`
This commit is contained in:
nixocio 2021-03-01 23:04:12 -05:00
parent d1c49d45bf
commit 5969d9e3e2
3 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ function ReLaunchDropDown({ isPrimary = false, handleRelaunch, i18n }) {
<DropdownToggle
toggleIndicator={null}
onToggle={onToggle}
aria-label={i18n._(`relaunch jobs`)}
aria-label={i18n._(t`relaunch jobs`)}
id="relaunch_jobs"
isPrimary
>
@ -83,7 +83,7 @@ function ReLaunchDropDown({ isPrimary = false, handleRelaunch, i18n }) {
<DropdownToggle
toggleIndicator={null}
onToggle={onToggle}
aria-label={i18n._(`relaunch jobs`)}
aria-label={i18n._(t`relaunch jobs`)}
id="relaunch_jobs"
>
<RocketIcon />

View File

@ -117,7 +117,7 @@ function Inventories({ i18n }) {
t`Schedule details`
),
[`${inventorySourcesPath}/${nestedObject?.id}/notifications`]: i18n._(
t`Notifcations`
t`Notifications`
),
});
},

View File

@ -29,7 +29,7 @@ function WorkflowJobTemplateAdd() {
const {
data: { id },
} = await WorkflowJobTemplatesAPI.create(templatePayload);
await Promise.all(await submitLabels(id, labels, organizationId));
await Promise.all(submitLabels(id, labels, organizationId));
history.push(`/templates/workflow_job_template/${id}/visualizer`);
} catch (err) {
setFormSubmitError(err);