Improve the logic for this I guess
This commit is contained in:
1 file changed
+18
-17
@@ -48,10 +48,8 @@ export default function ManageVersionPopup () {
|
|||||||
<p className='text-xl text-center'>Viewing {versionInfo?.displayName}</p>
|
<p className='text-xl text-center'>Viewing {versionInfo?.displayName}</p>
|
||||||
<div className='popup-content h-full w-full flex justify-center items-center flex-col gap-2'>
|
<div className='popup-content h-full w-full flex justify-center items-center flex-col gap-2'>
|
||||||
<div className='flex flex-row gap-2 justify-center'>
|
<div className='flex flex-row gap-2 justify-center'>
|
||||||
<div
|
{!viewingInfoFromDownloads && (
|
||||||
className='entry-info-item btntheme2'
|
<div className='entry-info-item btntheme2'>
|
||||||
hidden={viewingInfoFromDownloads}
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
Installed{' '}
|
Installed{' '}
|
||||||
{new Intl.DateTimeFormat(undefined).format(
|
{new Intl.DateTimeFormat(undefined).format(
|
||||||
@@ -59,21 +57,25 @@ export default function ManageVersionPopup () {
|
|||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
)}
|
||||||
className='entry-info-item btntheme2'
|
{versionInfo && (
|
||||||
hidden={!versionInfo || versionInfo.releaseDate == 0}
|
<>
|
||||||
>
|
{versionInfo.releaseDate != 0 && (
|
||||||
|
<div className='entry-info-item btntheme2'>
|
||||||
<p>
|
<p>
|
||||||
Released{' '}
|
Released{' '}
|
||||||
{new Intl.DateTimeFormat(undefined).format(
|
{new Intl.DateTimeFormat(undefined).format(
|
||||||
versionInfo?.releaseDate ? versionInfo.releaseDate * 1000 : 0
|
versionInfo?.releaseDate
|
||||||
|
? versionInfo.releaseDate * 1000
|
||||||
|
: 0
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
{versionInfo.changelog && (
|
||||||
<div
|
<div
|
||||||
className='entry-info-item btntheme2'
|
className='entry-info-item btntheme2'
|
||||||
onClick={() => setPopupMode(4)}
|
onClick={() => setPopupMode(4)}
|
||||||
hidden={!versionInfo?.changelog}
|
|
||||||
>
|
>
|
||||||
<p>View Changelog</p>
|
<p>View Changelog</p>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
@@ -81,12 +83,13 @@ export default function ManageVersionPopup () {
|
|||||||
color='lightgray'
|
color='lightgray'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{!viewingInfoFromDownloads && (
|
||||||
<div className='flex flex-row gap-2 justify-center'>
|
<div className='flex flex-row gap-2 justify-center'>
|
||||||
<div
|
<div className='entry-info-item btntheme2'>
|
||||||
className='entry-info-item btntheme2'
|
|
||||||
hidden={viewingInfoFromDownloads}
|
|
||||||
>
|
|
||||||
<FontAwesomeIcon icon={faHardDrive} color='lightgray' />
|
<FontAwesomeIcon icon={faHardDrive} color='lightgray' />
|
||||||
<p>
|
<p>
|
||||||
Size on disk:{' '}
|
Size on disk:{' '}
|
||||||
@@ -100,7 +103,6 @@ export default function ManageVersionPopup () {
|
|||||||
className='entry-info-item btntheme2'
|
className='entry-info-item btntheme2'
|
||||||
onClick={async () => openFolder(managingVersion)}
|
onClick={async () => openFolder(managingVersion)}
|
||||||
title="Click to browse the game's files."
|
title="Click to browse the game's files."
|
||||||
hidden={viewingInfoFromDownloads}
|
|
||||||
>
|
>
|
||||||
Open Folder
|
Open Folder
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
@@ -147,7 +149,6 @@ export default function ManageVersionPopup () {
|
|||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
title='Click to uninstall this game. This will NOT remove any progress or any save files.'
|
title='Click to uninstall this game. This will NOT remove any progress or any save files.'
|
||||||
hidden={viewingInfoFromDownloads}
|
|
||||||
>
|
>
|
||||||
Uninstall
|
Uninstall
|
||||||
</div>
|
</div>
|
||||||
@@ -202,11 +203,11 @@ export default function ManageVersionPopup () {
|
|||||||
])
|
])
|
||||||
}}
|
}}
|
||||||
title="Click to reinstall this game. This will NOT remove any progress or any save files. This WILL uninstall any modifications to the game's executable files."
|
title="Click to reinstall this game. This will NOT remove any progress or any save files. This WILL uninstall any modifications to the game's executable files."
|
||||||
hidden={viewingInfoFromDownloads}
|
|
||||||
>
|
>
|
||||||
Reinstall
|
Reinstall
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user