photobooth funktionen im event admin verlinkt, gäste pwa zeigt photobooth nur noch an, wenn diese aktiviert ist. kontaktformular optimiert. teilen-link mit iMessage und whatsapp erweitert.
This commit is contained in:
@@ -279,7 +279,7 @@ const [canUpload, setCanUpload] = useState(true);
|
||||
|
||||
// Check upload limits
|
||||
useEffect(() => {
|
||||
if (!eventKey || !task) return;
|
||||
if (!eventKey) return;
|
||||
|
||||
const checkLimits = async () => {
|
||||
try {
|
||||
@@ -326,7 +326,7 @@ const [canUpload, setCanUpload] = useState(true);
|
||||
};
|
||||
|
||||
checkLimits();
|
||||
}, [eventKey, task, t]);
|
||||
}, [eventKey, t]);
|
||||
|
||||
const stopStream = useCallback(() => {
|
||||
if (streamRef.current) {
|
||||
@@ -542,19 +542,19 @@ const [canUpload, setCanUpload] = useState(true);
|
||||
|
||||
const navigateAfterUpload = useCallback(
|
||||
(photoId: number | undefined) => {
|
||||
if (!eventKey || !task) return;
|
||||
if (!eventKey) return;
|
||||
const params = new URLSearchParams();
|
||||
params.set('uploaded', 'true');
|
||||
if (task.id) params.set('task', String(task.id));
|
||||
if (task?.id) params.set('task', String(task.id));
|
||||
if (photoId) params.set('photo', String(photoId));
|
||||
if (emotionSlug) params.set('emotion', emotionSlug);
|
||||
navigate(`/e/${encodeURIComponent(eventKey)}/gallery?${params.toString()}`);
|
||||
},
|
||||
[emotionSlug, navigate, eventKey, task]
|
||||
[emotionSlug, navigate, eventKey, task?.id]
|
||||
);
|
||||
|
||||
const handleUsePhoto = useCallback(async () => {
|
||||
if (!eventKey || !reviewPhoto || !task || !canUpload) return;
|
||||
if (!eventKey || !reviewPhoto || !canUpload) return;
|
||||
setMode('uploading');
|
||||
setUploadProgress(2);
|
||||
setUploadError(null);
|
||||
|
||||
Reference in New Issue
Block a user