mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
Add moderation helper copy for trusted mute hides
This commit is contained in:
1 parent
df864585ae
commit
24cea57581
2 files changed
+23
No files matched your search
@@ -28,6 +28,8 @@ const NWC_URI_SCHEME = "nostr+walletconnect://";
|
||||
const SECRET_PLACEHOLDER = "*****";
|
||||
const DEFAULT_MAX_WALLET_DEFAULT_ZAP = 100000000;
|
||||
const DEFAULT_SAVED_PROFILE_LABEL = "Saved profile";
|
||||
const TRUSTED_MUTE_HIDE_HELPER_TEXT =
|
||||
"Reaching this count hides cards (with “Show anyway”); lower signals only blur thumbnails or block autoplay.";
|
||||
|
||||
const ADD_PROFILE_CANCELLATION_CODES = new Set([
|
||||
"login-cancelled",
|
||||
@@ -1428,6 +1430,7 @@ export class ProfileModalController {
|
||||
"[data-role=\"trusted-hide-control\"]",
|
||||
) || [],
|
||||
);
|
||||
this.updateTrustedMuteHideHelperCopy();
|
||||
|
||||
this.moderatorSection =
|
||||
document.getElementById("adminModeratorsSection") || null;
|
||||
@@ -7061,6 +7064,24 @@ export class ProfileModalController {
|
||||
}
|
||||
}
|
||||
|
||||
updateTrustedMuteHideHelperCopy() {
|
||||
if (!(this.moderationMuteHideInput instanceof HTMLInputElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const label = this.moderationMuteHideInput.closest("label");
|
||||
if (!(label instanceof HTMLElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const helper = label.querySelector("span.text-xs");
|
||||
if (!(helper instanceof HTMLElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
helper.textContent = TRUSTED_MUTE_HIDE_HELPER_TEXT;
|
||||
}
|
||||
|
||||
refreshModerationSettingsUi() {
|
||||
const service = this.getModerationSettingsService();
|
||||
if (!service) {
|
||||
|
||||
Reference in new issue
Block a user