From bebd685bcdb7883ed70c2aa6049ce72556bdb91a Mon Sep 17 00:00:00 2001 From: Index Date: Mon, 1 Jul 2024 05:10:46 -0500 Subject: [PATCH] fix: fix label text not changing when changing place activity --- js/places/place-edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)