feat: Erscheinungsdaten von xREL (us-cine/de-cine/us-web/de-disc)
This commit is contained in:
@@ -457,7 +457,7 @@ function FavoritenKalender({ onOpenModal }) {
|
||||
// ── Film-Detail-Modal (via Portal) ────────────────────────────────────────────
|
||||
function MovieModal({ tmdbId, onClose, mobile, onHasXrel }) {
|
||||
const [detail, setDetail] = useState(null);
|
||||
const [xrel, setXrel] = useState(null); // null=nicht gesucht
|
||||
const [xrel, setXrel] = useState(null); // null=nicht gesucht, []=gesucht
|
||||
const [xrelDates, setXrelDates] = useState([]);
|
||||
const [xrelLoading, setXrelLoading] = useState(false);
|
||||
const [loading, setLoading] = useState(true);
|
||||
@@ -467,7 +467,7 @@ function MovieModal({ tmdbId, onClose, mobile, onHasXrel }) {
|
||||
const detailRef = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(true); setDetail(null); setXrel(null); setError('');
|
||||
setLoading(true); setDetail(null); setXrel(null); setXrelDates([]); setError('');
|
||||
detailRef.current = null;
|
||||
api(`/tools/media/movie/${tmdbId}`)
|
||||
.then(d => {
|
||||
|
||||
Reference in New Issue
Block a user