mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Restoring singlefile button on Archive page.
This commit is contained in:
parent
6959c7a3b4
commit
402882ce2e
2 changed files with 2 additions and 6 deletions
|
|
@ -87,16 +87,11 @@ function ArchivePage() {
|
|||
|
||||
const singlefileUrl = data.singlefile_path ? `/media/${encodeMediaPath(data.singlefile_path)}` : null;
|
||||
const screenshotUrl = data.screenshot_path ? `/media/${encodeMediaPath(data.screenshot_path)}` : null;
|
||||
const readabilityUrl = data.readability_path;
|
||||
|
||||
const singlefileButton = <ExternalCardLink to={singlefileUrl}>
|
||||
<Button content='View' color='violet'/>
|
||||
</ExternalCardLink>;
|
||||
|
||||
const readabilityLink = readabilityUrl ?
|
||||
<PreviewLink file={{path: readabilityUrl, mimetype: 'text/html'}}><Button content='Article'/></PreviewLink> :
|
||||
<Button disabled content='Article'/>;
|
||||
|
||||
const screenshot = screenshotUrl ?
|
||||
<Image src={screenshotUrl} size='large' style={{marginTop: '1em', marginBottom: '1em'}}/> :
|
||||
null;
|
||||
|
|
@ -229,6 +224,7 @@ function ArchivePage() {
|
|||
</ExternalCardLink>
|
||||
<Header as='h3'>{isoDatetimeToString(data.archive_datetime)}</Header>
|
||||
|
||||
{singlefileButton}
|
||||
{updateButton}
|
||||
{deleteButton}
|
||||
</Segment>
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ export function RestartButton() {
|
|||
size='huge'
|
||||
color='yellow'
|
||||
onClick={handleRestart}
|
||||
confirmContent='Are you sure you want to restart your WROLPi?'
|
||||
confirmContent='Are you sure you want to reboot your WROLPi?'
|
||||
confirmButton='Restart'
|
||||
disabled={dockerized}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue