mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Restoring Read button on ArchivePage.
This commit is contained in:
parent
b16b8ce33a
commit
2ee39f0ace
1 changed files with 5 additions and 0 deletions
|
|
@ -84,11 +84,15 @@ function ArchivePage() {
|
|||
const {data, size} = archiveFile;
|
||||
|
||||
const singlefileUrl = data.singlefile_path ? `/media/${encodeMediaPath(data.singlefile_path)}` : null;
|
||||
const readabilityUrl = data.readability_path ? `/media/${encodeMediaPath(data.readability_path)}` : null;
|
||||
const screenshotUrl = data.screenshot_path ? `/media/${encodeMediaPath(data.screenshot_path)}` : null;
|
||||
|
||||
const singlefileButton = <ExternalCardLink to={singlefileUrl}>
|
||||
<Button content='View' color='violet'/>
|
||||
</ExternalCardLink>;
|
||||
const readButton = <ExternalCardLink to={readabilityUrl}>
|
||||
<Button content='Read' color='blue' disabled={!!!readabilityUrl}/>
|
||||
</ExternalCardLink>
|
||||
|
||||
const screenshot = screenshotUrl ?
|
||||
<Image src={screenshotUrl} size='large' style={{marginTop: '1em', marginBottom: '1em'}}/> :
|
||||
|
|
@ -253,6 +257,7 @@ function ArchivePage() {
|
|||
</Grid>
|
||||
|
||||
{singlefileButton}
|
||||
{readButton}
|
||||
{updateButton}
|
||||
{deleteButton}
|
||||
</Segment>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue