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
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
ArrowCircleUpIcon,
|
ArrowCircleUpIcon,
|
||||||
// BeakerIcon,
|
BeakerIcon,
|
||||||
CodeIcon,
|
CodeIcon,
|
||||||
ServerIcon,
|
ServerIcon,
|
||||||
} from '@heroicons/react/outline';
|
} from '@heroicons/react/outline';
|
||||||
@@ -36,7 +36,7 @@ const VersionStatus: React.FC<VersionStatusProps> = ({ onClick }) => {
|
|||||||
data.commitTag === 'local'
|
data.commitTag === 'local'
|
||||||
? 'Keep it up! 👍'
|
? 'Keep it up! 👍'
|
||||||
: data.version.startsWith('develop-')
|
: data.version.startsWith('develop-')
|
||||||
? intl.formatMessage(messages.streamstable)
|
? intl.formatMessage(messages.streamdevelop)
|
||||||
: intl.formatMessage(messages.streamstable);
|
: intl.formatMessage(messages.streamstable);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -52,16 +52,14 @@ const VersionStatus: React.FC<VersionStatusProps> = ({ onClick }) => {
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
className={`flex items-center p-2 mx-2 text-xs transition duration-300 rounded-lg ring-1 ring-gray-700 ${
|
className={`flex items-center p-2 mx-2 text-xs transition duration-300 rounded-lg ring-1 ring-gray-700 ${
|
||||||
data.updateAvailable
|
data.updateAvailable
|
||||||
? // ? 'bg-yellow-500 text-white hover:bg-yellow-400'
|
? 'bg-yellow-500 text-white hover:bg-yellow-400'
|
||||||
'bg-gray-900 text-gray-300 hover:bg-gray-800'
|
|
||||||
: 'bg-gray-900 text-gray-300 hover:bg-gray-800'
|
: 'bg-gray-900 text-gray-300 hover:bg-gray-800'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{data.commitTag === 'local' ? (
|
{data.commitTag === 'local' ? (
|
||||||
<CodeIcon className="w-6 h-6" />
|
<CodeIcon className="w-6 h-6" />
|
||||||
) : data.version.startsWith('develop-') ? (
|
) : data.version.startsWith('develop-') ? (
|
||||||
// <BeakerIcon className="w-6 h-6" />
|
<BeakerIcon className="w-6 h-6" />
|
||||||
<CodeIcon className="w-6 h-6" />
|
|
||||||
) : (
|
) : (
|
||||||
<ServerIcon className="w-6 h-6" />
|
<ServerIcon className="w-6 h-6" />
|
||||||
)}
|
)}
|
||||||
@@ -74,8 +72,7 @@ const VersionStatus: React.FC<VersionStatusProps> = ({ onClick }) => {
|
|||||||
intl.formatMessage(messages.commitsbehind, {
|
intl.formatMessage(messages.commitsbehind, {
|
||||||
commitsBehind: data.commitsBehind,
|
commitsBehind: data.commitsBehind,
|
||||||
})
|
})
|
||||||
) : // ) : data.commitsBehind === -1 ? (
|
) : data.commitsBehind === -1 ? (
|
||||||
data.commitsBehind === 0 ? (
|
|
||||||
intl.formatMessage(messages.outofdate)
|
intl.formatMessage(messages.outofdate)
|
||||||
) : (
|
) : (
|
||||||
<code className="p-0 bg-transparent">
|
<code className="p-0 bg-transparent">
|
||||||
|
|||||||
@@ -85,10 +85,10 @@ const SettingsAbout: React.FC = () => {
|
|||||||
title={intl.formatMessage(messages.version)}
|
title={intl.formatMessage(messages.version)}
|
||||||
className="truncate"
|
className="truncate"
|
||||||
>
|
>
|
||||||
{/* <code>{data.version.replace('develop-', '')}</code> */}
|
<code>{data.version.replace('develop-', '')}</code>
|
||||||
{status?.updateAvailable ? (
|
{status?.updateAvailable ? (
|
||||||
<Badge badgeType="success" className="ml-2">
|
<Badge badgeType="warning" className="ml-2">
|
||||||
{intl.formatMessage(messages.uptodate)}
|
{intl.formatMessage(messages.outofdate)}
|
||||||
</Badge>
|
</Badge>
|
||||||
) : (
|
) : (
|
||||||
status?.commitTag !== 'local' && (
|
status?.commitTag !== 'local' && (
|
||||||
@@ -115,12 +115,12 @@ const SettingsAbout: React.FC = () => {
|
|||||||
<List title={intl.formatMessage(messages.gettingsupport)}>
|
<List title={intl.formatMessage(messages.gettingsupport)}>
|
||||||
<List.Item title={intl.formatMessage(messages.documentation)}>
|
<List.Item title={intl.formatMessage(messages.documentation)}>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/Fallenbagel/jellyseerr/blob/main/README.md"
|
href="https://github.com/Fallenbagel/jellyseerr#readme"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
className="text-indigo-500 hover:underline"
|
className="text-indigo-500 hover:underline"
|
||||||
>
|
>
|
||||||
https://github.com/Fallenbagel/jellyseerr/blob/main/README.md
|
https://github.com/Fallenbagel/jellyseerr#readme
|
||||||
</a>
|
</a>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
<List.Item title={intl.formatMessage(messages.githubdiscussions)}>
|
<List.Item title={intl.formatMessage(messages.githubdiscussions)}>
|
||||||
|
|||||||
Reference in New Issue
Block a user