mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 17:32:26 +00:00
Handle custom auth providers in saved profiles
This commit is contained in:
1 parent
1137a8ca78
commit
ea45488ee4
5 files changed
+256
-23
No files matched your search
@@ -1518,8 +1518,12 @@ export class ProfileModalController {
|
||||
if (meta.npub) {
|
||||
button.dataset.npub = meta.npub;
|
||||
}
|
||||
if (entry.authType) {
|
||||
button.dataset.authType = entry.authType;
|
||||
const normalizedAuthType =
|
||||
typeof entry.authType === "string" && entry.authType.trim()
|
||||
? entry.authType.trim()
|
||||
: null;
|
||||
if (normalizedAuthType) {
|
||||
button.dataset.authType = normalizedAuthType;
|
||||
}
|
||||
|
||||
const normalizedPubkey = this.normalizeHexPubkey(entry.pubkey);
|
||||
@@ -1555,7 +1559,7 @@ export class ProfileModalController {
|
||||
label.className =
|
||||
"text-3xs font-semibold uppercase tracking-extra-wide text-status-info";
|
||||
label.textContent =
|
||||
entry.authType === "nsec" ? "Direct key" : "Saved profile";
|
||||
normalizedAuthType === "nsec" ? "Direct key" : "Saved profile";
|
||||
|
||||
const action = document.createElement("span");
|
||||
action.className = "text-xs font-medium text-muted";
|
||||
|
||||
Reference in new issue
Block a user