Restoring singlefile button on Archive page.

This commit is contained in:
Roland 2023-08-28 09:47:51 -06:00
parent 6959c7a3b4
commit 402882ce2e
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 2 additions and 6 deletions

View file

@ -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>

View file

@ -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}
>