Skip to content

Commit

Permalink
Merge pull request #822 from TransformerOptimus/bugs_new
Browse files Browse the repository at this point in the history
  • Loading branch information
nborthy authored Jul 20, 2023
2 parents b3ce34c + d32a410 commit 03442ee
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions gui/pages/Content/Agents/ResourceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,39 @@ export default function ResourceList({files, channel, runs}) {
)

return (
<div>
{channel === 'output' && (!isAnyFileWithAgentId || files.length <= 0 ?
<div>
{channel === 'output' && (!isAnyFileWithAgentId || files.length <= 0 ?
<div className="vertical_container">
<Image width={150} height={60} src="/images/no_permissions.svg" alt="no-permissions"/>
<span className={styles.feed_title} style={{marginTop: '8px'}}>No Output files!</span>
</div>
:
<div id="division_by_runs">
{filesByRun.map((filesRun, index) => (
<div key={index}>
<div className="horizontal_container justify_space_between cursor_pointer" style={{padding: '8px 6px'}}
onClick={() => setSelectedRunId(filesRun.run.id === selectedRunId ? null : filesRun.run.id)}>
<div className="horizontal_container">
<Image
src={selectedRunId === filesRun.run.id ? "/images/arrow_downward_dropdown.svg" : "/images/arrow_forward.svg"}
alt="arrow" width={14} height={14}/>
<span className="text_12 ml_8">{filesRun.run.name}</span>
<div className="resource_manager_tip ml_8"><Image src="/images/bolt.svg" alt="bolt" width={10}
height={10}/> <span
className="text_9">Run {index + 1}</span></div>
</div>
<Image src="/images/download.svg" alt="download_icon" width={16} height={16}
onClick={() => downloadRunFiles(filesRun.run.id, filesRun.run.name)}/>
</div>
<div key={filesByRun.length - index - 1}>
<div className="horizontal_container justify_space_between cursor_pointer" style={{padding: '8px 6px'}}
onClick={() => setSelectedRunId(filesRun.run.id === selectedRunId ? null : filesRun.run.id)}>
<div className="horizontal_container">
<Image
src={selectedRunId === filesRun.run.id ? "/images/arrow_downward_dropdown.svg" : "/images/arrow_forward.svg"}
alt="arrow" width={14} height={14}/>
<span className="text_12 ml_8">{filesRun.run.name}</span>
<div className="resource_manager_tip ml_8"><Image src="/images/bolt.svg" alt="bolt" width={10}
height={10}/> <span
className="text_9">Run {filesByRun.length - index}</span></div>
</div>
<Image src="/images/download.svg" alt="download_icon" width={16} height={16}
onClick={() => downloadRunFiles(filesRun.run.id, filesRun.run.name)}/>
</div>

{selectedRunId === filesRun.run.id && (
<div className={styles.resources} style={{padding: '2px 8px'}}>
{filesRun.files.map((file, index) => <File key={index} file={file}/>)}
</div>
)}
{selectedRunId === filesRun.run.id && (
<div className={styles.resources} style={{padding: '2px 8px'}}>
{filesRun.files.map((file, index) => <File key={index} file={file}/>)}
</div>
))}
)}
</div>
))}
</div>
)}

{channel === 'input' &&
Expand Down

0 comments on commit 03442ee

Please sign in to comment.