From 03265c05cacba50ba2ad2c8eb7107adc76064a70 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Thu, 6 May 2021 15:36:35 -0400 Subject: [PATCH] fixes setstate, and double tooltip --- .../JobCancelButton/JobCancelButton.jsx | 6 +++--- .../InventorySourceListItem.jsx | 18 +++++++++-------- .../Project/ProjectList/ProjectListItem.jsx | 20 +++++++++++-------- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/awx/ui_next/src/components/JobCancelButton/JobCancelButton.jsx b/awx/ui_next/src/components/JobCancelButton/JobCancelButton.jsx index b3ab1e9fa7..177f217fd3 100644 --- a/awx/ui_next/src/components/JobCancelButton/JobCancelButton.jsx +++ b/awx/ui_next/src/components/JobCancelButton/JobCancelButton.jsx @@ -33,7 +33,7 @@ function JobCancelButton({ )} @@ -77,7 +77,7 @@ function JobCancelButton({ , ]} > - {t`Are you sure you want to submit the request to cancel this job?`} + {t`Are you sure you want to cancel this job?`} )} {error && ( diff --git a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx index a5b4603bfc..dce8c861fe 100644 --- a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx +++ b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx @@ -92,11 +92,8 @@ function InventorySourceListItem({ {label} - - {['running', 'pending', 'waiting'].includes(source?.status) ? ( + {['running', 'pending', 'waiting'].includes(source?.status) ? ( + - ) : ( + + ) : ( + - )} - + + )} - - {['running', 'pending', 'waiting'].includes(job?.status) ? ( + {['running', 'pending', 'waiting'].includes(job?.status) ? ( + - ) : ( + + ) : ( + - )} - + + )}