Skip to content

Commit

Permalink
download video link
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevanis committed Mar 1, 2021
1 parent 975b89b commit 668399d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ class GalleryGrid extends React.Component {
</BrowserView>
</div>
}
{this.state.activeContent.endsWith(".mp4") &&
<div className="footer-content">
<p className="mr-auto">
<a href={this.state.activeContent} download={this.state.activeContent.substring(this.state.activeContent.lastIndexOf('/')+1)}>Download Video</a>
</p>
</div>
}
<Button variant="primary" className="btn-icon" onClick={this.handleModalExit}>
<Cancel/>
</Button>
Expand Down

0 comments on commit 668399d

Please sign in to comment.