From a65e430c606aa7c4e1cfd45371faad1129d09ed7 Mon Sep 17 00:00:00 2001 From: Fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Fri, 15 Apr 2022 14:03:03 +0500 Subject: [PATCH] fix: fix for the jellyseerr out of date even though it is up-to-date Reverting back the changes for the quick jellyseerr version fix for a better implementation --- src/components/Layout/VersionStatus/index.tsx | 13 +++++-------- src/components/Settings/SettingsAbout/index.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/components/Layout/VersionStatus/index.tsx b/src/components/Layout/VersionStatus/index.tsx index 2016b6bbb..ca8150a7b 100644 --- a/src/components/Layout/VersionStatus/index.tsx +++ b/src/components/Layout/VersionStatus/index.tsx @@ -1,6 +1,6 @@ import { ArrowCircleUpIcon, - // BeakerIcon, + BeakerIcon, CodeIcon, ServerIcon, } from '@heroicons/react/outline'; @@ -36,7 +36,7 @@ const VersionStatus: React.FC = ({ onClick }) => { data.commitTag === 'local' ? 'Keep it up! 👍' : data.version.startsWith('develop-') - ? intl.formatMessage(messages.streamstable) + ? intl.formatMessage(messages.streamdevelop) : intl.formatMessage(messages.streamstable); return ( @@ -52,16 +52,14 @@ const VersionStatus: React.FC = ({ onClick }) => { tabIndex={0} className={`flex items-center p-2 mx-2 text-xs transition duration-300 rounded-lg ring-1 ring-gray-700 ${ data.updateAvailable - ? // ? 'bg-yellow-500 text-white hover:bg-yellow-400' - 'bg-gray-900 text-gray-300 hover:bg-gray-800' + ? 'bg-yellow-500 text-white hover:bg-yellow-400' : 'bg-gray-900 text-gray-300 hover:bg-gray-800' }`} > {data.commitTag === 'local' ? ( ) : data.version.startsWith('develop-') ? ( - // - + ) : ( )} @@ -74,8 +72,7 @@ const VersionStatus: React.FC = ({ onClick }) => { intl.formatMessage(messages.commitsbehind, { commitsBehind: data.commitsBehind, }) - ) : // ) : data.commitsBehind === -1 ? ( - data.commitsBehind === 0 ? ( + ) : data.commitsBehind === -1 ? ( intl.formatMessage(messages.outofdate) ) : ( diff --git a/src/components/Settings/SettingsAbout/index.tsx b/src/components/Settings/SettingsAbout/index.tsx index 4f10797d0..f3e59739e 100644 --- a/src/components/Settings/SettingsAbout/index.tsx +++ b/src/components/Settings/SettingsAbout/index.tsx @@ -85,10 +85,10 @@ const SettingsAbout: React.FC = () => { title={intl.formatMessage(messages.version)} className="truncate" > - {/* {data.version.replace('develop-', '')} */} + {data.version.replace('develop-', '')} {status?.updateAvailable ? ( - - {intl.formatMessage(messages.uptodate)} + + {intl.formatMessage(messages.outofdate)} ) : ( status?.commitTag !== 'local' && ( @@ -115,12 +115,12 @@ const SettingsAbout: React.FC = () => { - https://github.com/Fallenbagel/jellyseerr/blob/main/README.md + https://github.com/Fallenbagel/jellyseerr#readme