mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 16:32:28 +00:00
fix(my-videos): use lowercase pane key so the tab opens (not Account)
selectPane lowercases the requested name, but the My Videos pane/nav were registered under the camelCase key "myVideos". Every other pane key is a single lowercase word, so this latent mismatch only surfaced now: clicking My Videos resolved "myvideos" against panes that only had "myVideos", failed the availableKeys check, and fell back to Account. Register the pane/nav/selectPane hook under "myvideos". Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
475880198b
commit
ff04fcbd4b
1 file changed
+3
-3
@@ -679,7 +679,7 @@ export class ProfileModalController {
|
||||
this.navButtons.relays = document.getElementById("profileNavRelays") || null;
|
||||
this.navButtons.wallet = document.getElementById("profileNavWallet") || null;
|
||||
this.navButtons.storage = document.getElementById("profileNavStorage") || null;
|
||||
this.navButtons.myVideos =
|
||||
this.navButtons.myvideos =
|
||||
document.getElementById("profileNavMyVideos") || null;
|
||||
this.navButtons.hashtags =
|
||||
document.getElementById("profileNavHashtags") || null;
|
||||
@@ -704,7 +704,7 @@ export class ProfileModalController {
|
||||
this.panes.relays = document.getElementById("profilePaneRelays") || null;
|
||||
this.panes.wallet = document.getElementById("profilePaneWallet") || null;
|
||||
this.panes.storage = document.getElementById("profilePaneStorage") || null;
|
||||
this.panes.myVideos =
|
||||
this.panes.myvideos =
|
||||
document.getElementById("profilePaneMyVideos") || null;
|
||||
this.panes.hashtags = document.getElementById("profilePaneHashtags") || null;
|
||||
this.panes.subscriptions =
|
||||
@@ -3280,7 +3280,7 @@ export class ProfileModalController {
|
||||
this.walletController.refreshWalletPaneState();
|
||||
} else if (target === "storage") {
|
||||
this.storageController.populateStoragePane();
|
||||
} else if (target === "myVideos") {
|
||||
} else if (target === "myvideos") {
|
||||
void this.myVideosController.populate({ forceFetch: true });
|
||||
} else if (target === "hashtags") {
|
||||
this.hashtagController.populateHashtagPreferences();
|
||||
|
||||
Reference in new issue
Block a user