mirror of
https://github.com/sct/overseerr.git
synced 2025-09-30 05:54:03 +02:00
fix(frontend): canceled movie request should set parent movie status back to unknown (#198)
This commit is contained in:
@@ -99,7 +99,7 @@ const MovieRequestModal: React.FC<RequestModalProps> = ({
|
||||
}
|
||||
addToast(
|
||||
<span>
|
||||
{intl.formatMessage(messages.cancelrequest, {
|
||||
{intl.formatMessage(messages.requestCancel, {
|
||||
title: data?.title,
|
||||
strong: function strong(msg) {
|
||||
return <strong>{msg}</strong>;
|
||||
|
@@ -209,7 +209,8 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
||||
</svg>
|
||||
</a>
|
||||
</Link>
|
||||
{!currentStatus && (
|
||||
{(!currentStatus ||
|
||||
currentStatus === MediaStatus.UNKNOWN) && (
|
||||
<button
|
||||
onClick={() => setShowRequestModal(true)}
|
||||
className="w-full h-7 text-center text-white bg-indigo-500 rounded-sm ml-2 hover:bg-indigo-400 focus:border-indigo-700 focus:ring-indigo active:bg-indigo-700 transition ease-in-out duration-150"
|
||||
|
Reference in New Issue
Block a user