Sửa lỗi xóa scene con thì xóa luôn scene cha

This commit is contained in:
2026-06-09 21:34:21 +07:00
parent 67825b04cc
commit 45ba805b39
7 changed files with 4 additions and 0 deletions
+4
View File
@@ -976,6 +976,10 @@ function closeActionModal() {
*/
window.deleteScene = async function(sceneId, sceneData = null) { // Thêm sceneData để tránh fetch lại
sceneIdToDelete = sceneId;
// Tạm thời đóng dashboard và lưu trạng thái để mở lại sau
dashboardReturnTab = 'my-scenes';
returnToDashboardAfterEdit = true;
closeDashboard();
const confirmModal = document.getElementById('delete-scene-confirm-modal');
const confirmMessageElem = document.getElementById('delete-scene-confirm-message'); // Giả định có element này trong HTML
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 MiB

Before

Width:  |  Height:  |  Size: 5.3 MiB

After

Width:  |  Height:  |  Size: 5.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB