web: debug
Local Docker Build (Dev) / build-dev (push) Successful in 5s

This commit is contained in:
2025-10-25 15:51:34 -04:00
parent 059d3bae3f
commit 8c850ab38c
3 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -457,6 +457,6 @@
<!-- Toast Notifications -->
<div class="toast-container" id="toast-container"></div>
<script src="/static/js/app.js?v=2.8.2-20241025-auth-fix"></script>
<script src="/static/js/app.js?v=2.8.2-20241025-movies-fix"></script>
</body>
</html>
+3 -12
View File
@@ -1322,24 +1322,15 @@ async function deleteMovie(imdbId) {
}
try {
const response = await fetch(`/api/movies/${imdbId}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
}
const result = await apiCall(`/api/movies/${imdbId}`, {
method: 'DELETE'
});
const result = await response.json();
if (response.ok && result.success) {
if (result.success) {
showToast(`✅ Movie deleted successfully`, 'success');
// Refresh the movies table
loadMovies(currentMoviesPage);
} else {
const errorMsg = result.message || result.error || 'Unknown error';
showToast(`❌ Failed to delete movie: ${errorMsg}`, 'error');
}
} catch (error) {