Skip to content

Commit

Permalink
Merge pull request #811 from NeurodataWithoutBorders/link-to-conversi…
Browse files Browse the repository at this point in the history
…on-output-file

Link to Conversion Output Files Individually
  • Loading branch information
CodyCBakerPhD authored May 30, 2024
2 parents 0cfd544 + 1bce466 commit 8dfe3c9
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,21 @@ export class GuidedResultsPage extends Page {
<p>Your data was successfully converted to NWB!</p>
<ol style="margin: 10px 0px; padding-top: 0;">
${getStubArray(conversion)
.map(({ file }) => file.split(path.sep).slice(-1)[0])
.sort()
.map((id) => html`<li>${id}</li>`)}
.map(({ file }) => {
return { file, id: file.split(path.sep).slice(-1)[0] };
})
.sort((a, b) => a.id.localeCompare(b.id))
.map(
({ id, file }) =>
html`<li>
<a
@click=${() => {
if (ipcRenderer) ipcRenderer.send("showItemInFolder", file);
}}
>${id}</a
>
</li>`
)}
</ol>
<h4>But what about my other data?</h4>
<p>
Expand Down

0 comments on commit 8dfe3c9

Please sign in to comment.