Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions pages/players/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ const WINGMAN_OPT = computed(() => ({
value: "Wingman",
label: t("pages.leaderboard.match_types.wingman"),
}));
const RUSH_OPT = computed(() => ({
value: "Rush",
label: t("pages.leaderboard.match_types.rush"),
}));
const ALL_OPT = computed(() => ({
value: "all",
label: t("pages.players.detail.all_short"),
Expand All @@ -500,7 +504,7 @@ const modeOptions = computed<{ value: string; label: string }[]>(() => {
COMPETITIVE_OPT.value,
WINGMAN_OPT.value,
{ value: "Duel", label: t("pages.leaderboard.match_types.duel") },
{ value: "Rush", label: t("pages.leaderboard.match_types.rush") },
RUSH_OPT.value,
];
}
switch (providerRef.value) {
Expand All @@ -510,6 +514,7 @@ const modeOptions = computed<{ value: string; label: string }[]>(() => {
{ value: "Premier", label: "Premier" },
COMPETITIVE_OPT.value,
WINGMAN_OPT.value,
RUSH_OPT.value,
];
case "faceit":
return [];
Expand All @@ -519,6 +524,7 @@ const modeOptions = computed<{ value: string; label: string }[]>(() => {
{ value: "Premier", label: "Premier" },
COMPETITIVE_OPT.value,
WINGMAN_OPT.value,
RUSH_OPT.value,
];
}
});
Expand Down Expand Up @@ -576,7 +582,7 @@ const modeModel = computed<string>({
function setSource(s: StatSource) {
const validModes =
s === "external"
? ["all", "Premier", "Competitive", "Wingman"]
? ["all", "Premier", "Competitive", "Wingman", "Rush"]
: ["all", "Competitive", "Wingman", "Duel", "Rush"];
const query: Record<string, any> = { ...route.query, source: s };
if (!validModes.includes(selectedModeRef.value)) {
Expand Down
1 change: 1 addition & 0 deletions utilities/cs2Presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type Cs2PresenceState = {
const MODE_LABELS: Record<string, string> = {
competitive: "Competitive",
premier: "Premier",
rush: "Rush",
scrimcomp2v2: "Wingman",
wingman: "Wingman",
scrimcomp5v5: "5v5 Scrim",
Expand Down
Loading