Sửa lỗi xóa scene con thì xóa luôn scene cha
@@ -976,6 +976,10 @@ function closeActionModal() {
|
|||||||
*/
|
*/
|
||||||
window.deleteScene = async function(sceneId, sceneData = null) { // Thêm sceneData để tránh fetch lại
|
window.deleteScene = async function(sceneId, sceneData = null) { // Thêm sceneData để tránh fetch lại
|
||||||
sceneIdToDelete = sceneId;
|
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 confirmModal = document.getElementById('delete-scene-confirm-modal');
|
||||||
const confirmMessageElem = document.getElementById('delete-scene-confirm-message'); // Giả định có element này trong HTML
|
const confirmMessageElem = document.getElementById('delete-scene-confirm-message'); // Giả định có element này trong HTML
|
||||||
|
|
||||||
|
|||||||
|
After Width: | Height: | Size: 5.7 MiB |
|
Before Width: | Height: | Size: 5.3 MiB After Width: | Height: | Size: 5.3 MiB |
|
After Width: | Height: | Size: 4.4 MiB |
|
After Width: | Height: | Size: 3.5 MiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 3.1 MiB |