diff --git a/js/places/place-edit.js b/js/places/place-edit.js index 7110938..c1cf72d 100755 --- a/js/places/place-edit.js +++ b/js/places/place-edit.js @@ -22,7 +22,7 @@ async function ActivityToggle() { DIV.innerHTML = `
`; @@ -41,6 +41,7 @@ async function ActivityToggle() { Status = Toggle.isActive; ActivityBtn.innerText = 'Set ' + (Status === true ? 'Private' : 'Public'); ActivityBtn.classList = 'btn ' + (Status === true ? 'btn-danger' : 'btn-success'); + Status === true ? document.getElementById('p+current_place_activity').innerText = 'active' : document.getElementById('p+current_place_activity').innerText = 'inactive' } else { //chrome.runtime.sendMessage({ action: "sweetalert2", icon: "error", title: "Error", text: Toggle.message }); alert(Toggle.message)