Fixes AI Control Console using placeholder AI name when downloading (#13465)

* Update AiControlPanel.js

* Update tgui/packages/tgui/interfaces/AiControlPanel.js
This commit is contained in:
TheGamerdk
2022-03-21 03:42:42 +01:00
committed by GitHub
parent 5aed371dad
commit 595ab862a8

View File

@@ -107,7 +107,7 @@ export const AiControlPanel = (props, context) => {
)}> )}>
{data.downloading && ( {data.downloading && (
<Fragment> <Fragment>
<NoticeBox mb={0.1} danger>Currently downloading G2</NoticeBox> <NoticeBox mb={0.1} danger>Currently downloading {data.downloading}</NoticeBox>
<ProgressBar color="bad" minValue="0" value={data.download_progress} maxValue="100" /> <ProgressBar color="bad" minValue="0" value={data.download_progress} maxValue="100" />
<Button mt={0.5} fluid color="bad" icon="stop" tooltip="WARNING" textAlign="center" onClick={() => act("stop_download")}>Cancel Download</Button> <Button mt={0.5} fluid color="bad" icon="stop" tooltip="WARNING" textAlign="center" onClick={() => act("stop_download")}>Cancel Download</Button>
{!!data.current_ai_ref && data.current_ai_ref === data.downloading_ref && ( {!!data.current_ai_ref && data.current_ai_ref === data.downloading_ref && (