File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 173
173
<span class =" version-info" >
174
174
for
175
175
<Categories
176
- :categories =" loaderCategories "
176
+ :categories =" getLoaderCategories(notif.extra_data.version) "
177
177
:type =" notif.extra_data.project.project_type"
178
178
class =" categories"
179
179
/>
@@ -391,12 +391,6 @@ const user = computed(() => props.notification.extra_data.user)
391
391
const organization = computed (() => props .notification .extra_data .organization )
392
392
const invitedBy = computed (() => props .notification .extra_data .invited_by )
393
393
394
- const loaderCategories = computed (() => {
395
- return tags .value .loaders .filter ((loader ) => {
396
- return version .value ? .loaders ? .includes (loader .name )
397
- })
398
- })
399
-
400
394
const threadLink = computed (() => {
401
395
if (report .value ) {
402
396
return ` /dashboard/report/${ report .value .id } `
@@ -462,6 +456,12 @@ function getMessages() {
462
456
}
463
457
return messages
464
458
}
459
+
460
+ function getLoaderCategories (ver ) {
461
+ return tags .value .loaders .filter ((loader ) => {
462
+ return ver? .loaders ? .includes (loader .name )
463
+ })
464
+ }
465
465
< / script>
466
466
467
467
< style lang= " scss" scoped>
Original file line number Diff line number Diff line change @@ -1664,6 +1664,12 @@ if (!route.name.startsWith('type-id-settings')) {
1664
1664
const onUserCollectProject = useClientTry(userCollectProject)
1665
1665
1666
1666
const { version, loader } = route.query
1667
+ if (
1668
+ project.value.game_versions.length > 0 &&
1669
+ project.value.game_versions.every((v) => v.includes('w') || v.includes('-'))
1670
+ ) {
1671
+ showAllVersions.value = true
1672
+ }
1667
1673
if (version !== undefined && project.value.game_versions.includes(version)) {
1668
1674
userSelectedGameVersion.value = version
1669
1675
}
You can’t perform that action at this time.
0 commit comments