Sửa lỗi xóa scene con thì xóa luôn scene cha
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user