mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-09 08:05:41 +08:00
fix(result page): clicking on daily leaderboard rank not navigating to the leaderboards page
closes #6311
This commit is contained in:
parent
ff2b354bb3
commit
04797b281f
1 changed files with 11 additions and 0 deletions
|
@ -12,6 +12,8 @@ import * as QuoteReportModal from "../modals/quote-report";
|
|||
import * as QuoteSearchModal from "../modals/quote-search";
|
||||
import * as CustomTextModal from "../modals/custom-text";
|
||||
import * as PractiseWordsModal from "../modals/practise-words";
|
||||
import { navigate } from "../controllers/route-controller";
|
||||
import { getMode2 } from "../utils/misc";
|
||||
|
||||
$(".pageTest").on("click", "#testModesNotice .textButton", async (event) => {
|
||||
const attr = $(event.currentTarget).attr("commands");
|
||||
|
@ -84,3 +86,12 @@ $(".pageTest").on("click", "#practiseWordsButton", () => {
|
|||
}
|
||||
PractiseWordsModal.show();
|
||||
});
|
||||
|
||||
$(".pageTest #dailyLeaderboardRank").on("click", async () => {
|
||||
navigate(
|
||||
`/leaderboards?type=daily&language=${Config.language}&mode2=${getMode2(
|
||||
Config,
|
||||
null
|
||||
)}`
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue