fix: missing settings change
This commit is contained in:
+4
-2
@@ -213,7 +213,7 @@ async function handleLogout() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleSettings() {
|
async function handleSettings() {
|
||||||
const showSettings = getButtonById('settingsBtn').textContent === 'Settings' || getButtonById('settingsBtn').textContent === '⚙️ Settings';
|
const showSettings = getButtonById('settingsBtn').textContent.includes('Settings');
|
||||||
|
|
||||||
if (showSettings) {
|
if (showSettings) {
|
||||||
showLoading();
|
showLoading();
|
||||||
@@ -237,7 +237,8 @@ async function handleSettings() {
|
|||||||
getInputById('fiberGoal').value = '';
|
getInputById('fiberGoal').value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
getButtonById('settingsBtn').textContent = 'Back';
|
getButtonById('settingsBtn').textContent = '🔙 Back';
|
||||||
|
getButtonById('settingsBtnMobile').textContent = '🔙 Back';
|
||||||
|
|
||||||
appContent?.classList.add('hidden');
|
appContent?.classList.add('hidden');
|
||||||
settingsContent?.classList.remove('hidden');
|
settingsContent?.classList.remove('hidden');
|
||||||
@@ -252,6 +253,7 @@ async function handleSettings() {
|
|||||||
appContent?.classList.remove('hidden');
|
appContent?.classList.remove('hidden');
|
||||||
settingsContent?.classList.add('hidden');
|
settingsContent?.classList.add('hidden');
|
||||||
getButtonById('settingsBtn').textContent = '⚙️ Settings';
|
getButtonById('settingsBtn').textContent = '⚙️ Settings';
|
||||||
|
getButtonById('settingsBtnMobile').textContent = '⚙️ Settings';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user