From a55b3465634902807f8622f570999b1f4d499cdc Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Thu, 12 Oct 2023 17:05:58 +0100 Subject: [PATCH] Fix UI typos (#14488) typo fixes for scripts work. - [x] Manual QA for all new/changed functionality --- .../Scripts/components/ScriptListItem/ScriptListItem.tsx | 2 +- .../Scripts/components/ScriptStatusCell/ScriptStatusCell.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/pages/ManageControlsPage/Scripts/components/ScriptListItem/ScriptListItem.tsx b/frontend/pages/ManageControlsPage/Scripts/components/ScriptListItem/ScriptListItem.tsx index 4647b0b497..b747ef59b9 100644 --- a/frontend/pages/ManageControlsPage/Scripts/components/ScriptListItem/ScriptListItem.tsx +++ b/frontend/pages/ManageControlsPage/Scripts/components/ScriptListItem/ScriptListItem.tsx @@ -37,7 +37,7 @@ const ScriptListItem = ({ script, onDelete }: IScriptListItemProps) => { try { const content = await scriptAPI.downloadScript(script.id); const formatDate = format(new Date(), "yyyy-MM-dd"); - const filename = `${formatDate}_${script.name}`; + const filename = `${formatDate} ${script.name}`; const file = new File([content], filename); FileSaver.saveAs(file); } catch { diff --git a/frontend/pages/hosts/details/cards/Scripts/components/ScriptStatusCell/ScriptStatusCell.tsx b/frontend/pages/hosts/details/cards/Scripts/components/ScriptStatusCell/ScriptStatusCell.tsx index 1cf8596706..2998198c18 100644 --- a/frontend/pages/hosts/details/cards/Scripts/components/ScriptStatusCell/ScriptStatusCell.tsx +++ b/frontend/pages/hosts/details/cards/Scripts/components/ScriptStatusCell/ScriptStatusCell.tsx @@ -30,7 +30,8 @@ const STATUS_DISPLAY_CONFIG: Record< pending: { displayText: "Pending", iconStatus: "pendingPartial", - tooltip: () => "Script will run when the host comes online.", + tooltip: () => + "Script is running. To see if the script finished, refresh the page.", }, error: { displayText: "Error",