Sửa lỗi tạo liên kết chia sẻ của người dùng
This commit is contained in:
@@ -749,10 +749,17 @@ async function handleEditDeleteScene(scene) {
|
||||
const editBtn = document.getElementById('btn-edit-action');
|
||||
const editPrivacyBtn = document.getElementById('btn-edit-privacy-action');
|
||||
const deleteBtn = document.getElementById('btn-delete-action');
|
||||
const shareBtn = document.getElementById('btn-share-action');
|
||||
|
||||
title.innerText = `Scene: ${scene.title}`;
|
||||
modal.style.display = 'flex';
|
||||
|
||||
// Hành động Lấy link chia sẻ trực tiếp
|
||||
shareBtn.onclick = () => {
|
||||
closeActionModal();
|
||||
showShareLink(scene);
|
||||
};
|
||||
|
||||
// Hành động Chỉnh sửa privacy
|
||||
editPrivacyBtn.onclick = () => {
|
||||
returnToDashboardAfterEdit = false;
|
||||
@@ -1759,7 +1766,7 @@ window.handleEditPrivacyChange = function() {
|
||||
const settingsBtn = document.getElementById('btn-edit-privacy-settings');
|
||||
const isChild = document.getElementById('edit-modal-privacy').disabled;
|
||||
|
||||
if (!isChild && (privacy === 'member' || privacy === 'shared')) {
|
||||
if (!isChild && (privacy === 'member' || privacy === 'shared' || privacy === 'public')) {
|
||||
settingsBtn.style.display = 'block';
|
||||
} else {
|
||||
settingsBtn.style.display = 'none';
|
||||
|
||||
Reference in New Issue
Block a user