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:
parent
9973655abe
commit
33a5a60969
4 changed files with 10 additions and 14 deletions
|
@ -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) {
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -80,7 +80,6 @@
|
|||
"Miscellaneous": "разное",
|
||||
"ModeToggleAuto": "авто",
|
||||
"ModeToggleAudio": "аудио",
|
||||
"SettingsDisableNotifications": "cкрыть уведомления",
|
||||
"MediaPickerTitle": "выбери, что сохранить",
|
||||
"MediaPickerExplanationPC": "кликни то, что хочешь скачать. также можно скачать правой кнопки мыши.",
|
||||
"MediaPickerExplanationPhone": "нажми, или нажми и удерживай, чтобы скачать.",
|
||||
|
|
|
@ -523,10 +523,6 @@ export default function(obj) {
|
|||
}, {
|
||||
action: "disableMetadata",
|
||||
name: t("SettingsDisableMetadata")
|
||||
}, {
|
||||
action: "disableChangelog",
|
||||
name: t("SettingsDisableNotifications"),
|
||||
padding: "no-margin"
|
||||
}])
|
||||
})
|
||||
}]
|
||||
|
|
Loading…
Reference in a new issue