Skip to content

Commit a2ca7c4

Browse files
committed
fix: rename frame download link
1 parent abd33ef commit a2ca7c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/VideoExplorer/Home/MainView.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,18 @@ class MainView extends React.Component {
212212
<p>
213213
<a
214214
href={`${selectedVideo.path}${selectedFrame.jsonFile}`}
215+
download={`${selectedVideo.name}_{selectedFrame.jsonFile}`}
215216
className="badge badge-secondary"
216217
>
217-
<i className="fas fa-download" /> {selectedFrame.jsonFile}
218+
<i className="fas fa-download" /> JSON
218219
</a>
219220
&nbsp;
220221
<a
221222
href={`${selectedVideo.path}${selectedFrame.jsonFile.replace('.json', '.png')}`}
223+
download={`${selectedVideo.name}_{selectedFrame.jsonFile.replace('.json', '.png')}`}
222224
className="badge badge-secondary"
223225
>
224-
<i className="fas fa-download" /> frame{String(selectedFrame.index).padStart(8, '0')}.png
226+
<i className="fas fa-download" /> Image
225227
</a>
226228
</p>
227229
<SyntaxHighlighter

0 commit comments

Comments
 (0)