mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +00:00
Fix View Channel button functionality and styling in EventDetailsModal
This commit is contained in:
1 parent
f1d74894f2
commit
6794a54fba
2 files changed
+7
-2
No files matched your search
@@ -629,7 +629,10 @@ export default class ModalManager {
|
||||
callbacks: {
|
||||
showError: (msg) => app.showError(msg),
|
||||
showSuccess: (msg) => app.showSuccess(msg),
|
||||
openCreatorChannel: (pubkey) => app.goToProfile(pubkey),
|
||||
openCreatorChannel: (pubkey) => {
|
||||
app.hideModal();
|
||||
app.goToProfile(pubkey);
|
||||
},
|
||||
},
|
||||
});
|
||||
app.eventDetailsModal = this.eventDetailsModal;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { prepareStaticModal, openStaticModal, closeStaticModal } from "./staticModalAccessibility.js";
|
||||
import { sanitizeProfileMediaUrl } from "../../utils/profileMedia.js";
|
||||
|
||||
const DEFAULT_PROFILE_AVATAR = "assets/svg/default-profile.svg";
|
||||
|
||||
@@ -277,7 +278,8 @@ export class EventDetailsModal {
|
||||
}
|
||||
|
||||
if (authorPicEl) {
|
||||
const pic = video.authorPicture || video.profile?.picture || DEFAULT_PROFILE_AVATAR;
|
||||
const picCandidate = video.authorPicture || video.profile?.picture || "";
|
||||
const pic = sanitizeProfileMediaUrl(picCandidate) || DEFAULT_PROFILE_AVATAR;
|
||||
authorPicEl.src = pic;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user