front: remove an option to hide new version dot

turns out this option was confusing people (and also didn't do much)
This commit is contained in:
wukko 2024-04-05 11:57:06 +06:00
parent 9973655abe
commit 33a5a60969
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
4 changed files with 10 additions and 14 deletions

View file

@ -22,7 +22,6 @@ const switchers = {
};
const checkboxes = [
"alwaysVisibleButton",
"disableChangelog",
"downloadPopup",
"fullTikTokAudio",
"muteAudio",
@ -171,17 +170,21 @@ function notificationCheck(type) {
default:
changed = false;
}
if (changed && sGet("changelogStatus") === `${version}` || type === "disable") {
if (changed && sGet("changelogStatus") === `${version}`) {
setTimeout(() => {
eid("about-footer").innerHTML = eid("about-footer").innerHTML.replace(notification, '');
eid("tab-button-about-changelog").innerHTML = eid("tab-button-about-changelog").innerHTML.replace(notification, '')
}, 900)
}
if (sGet("disableChangelog") !== "true") {
if (!sGet("seenAbout") && !eid("about-footer").innerHTML.includes(notification)) eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`;
if (sGet("changelogStatus") !== `${version}`) {
if (!eid("about-footer").innerHTML.includes(notification)) eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`;
if (!eid("tab-button-about-changelog").innerHTML.includes(notification)) eid("tab-button-about-changelog").innerHTML = `${notification}${eid("tab-button-about-changelog").innerHTML}`;
if (!sGet("seenAbout") && !eid("about-footer").innerHTML.includes(notification)) {
eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`;
}
if (sGet("changelogStatus") !== `${version}`) {
if (!eid("about-footer").innerHTML.includes(notification)) {
eid("about-footer").innerHTML = `${notification}${eid("about-footer").innerHTML}`;
}
if (!eid("tab-button-about-changelog").innerHTML.includes(notification)) {
eid("tab-button-about-changelog").innerHTML = `${notification}${eid("tab-button-about-changelog").innerHTML}`;
}
}
}
@ -298,7 +301,6 @@ function checkbox(action) {
case "reduceTransparency": eid("cobalt-body").classList.toggle('no-transparency'); break;
case "disableAnimations": eid("cobalt-body").classList.toggle('no-animation'); break;
}
action === "disableChangelog" && sGet(action) === "true" ? notificationCheck("disable") : notificationCheck();
}
function changeButton(type, text) {
switch (type) {

View file

@ -80,7 +80,6 @@
"Miscellaneous": "miscellaneous",
"ModeToggleAuto": "auto",
"ModeToggleAudio": "audio",
"SettingsDisableNotifications": "hide notifications",
"MediaPickerTitle": "pick what to save",
"MediaPickerExplanationPC": "click or right click to download what you want.",
"MediaPickerExplanationPhone": "press or press and hold to download what you want.",

View file

@ -80,7 +80,6 @@
"Miscellaneous": "разное",
"ModeToggleAuto": "авто",
"ModeToggleAudio": "аудио",
"SettingsDisableNotifications": "cкрыть уведомления",
"MediaPickerTitle": "выбери, что сохранить",
"MediaPickerExplanationPC": "кликни то, что хочешь скачать. также можно скачать правой кнопки мыши.",
"MediaPickerExplanationPhone": "нажми, или нажми и удерживай, чтобы скачать.",

View file

@ -523,10 +523,6 @@ export default function(obj) {
}, {
action: "disableMetadata",
name: t("SettingsDisableMetadata")
}, {
action: "disableChangelog",
name: t("SettingsDisableNotifications"),
padding: "no-margin"
}])
})
}]