Skip to content

Commit

Permalink
fix version page (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToBinio authored Apr 23, 2024
1 parent 99ea06e commit 08b26f9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions theseus_gui/src/pages/project/Versions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,6 @@ import { releaseColor } from '@/helpers/utils'
import { computed, ref, watch } from 'vue'
import { SwapIcon } from '@/assets/icons/index.js'
const filterVersions = ref([])
const filterLoader = ref(props.instance ? [props.instance?.metadata?.loader] : [])
const filterGameVersions = ref(props.instance ? [props.instance?.metadata?.game_version] : [])
const currentPage = ref(1)
const clearFilters = () => {
filterVersions.value = []
filterLoader.value = []
filterGameVersions.value = []
}
const props = defineProps({
versions: {
type: Array,
Expand Down Expand Up @@ -205,6 +193,18 @@ const props = defineProps({
},
})
const filterVersions = ref([])
const filterLoader = ref(props.instance ? [props.instance?.metadata?.loader] : [])
const filterGameVersions = ref(props.instance ? [props.instance?.metadata?.game_version] : [])
const currentPage = ref(1)
const clearFilters = () => {
filterVersions.value = []
filterLoader.value = []
filterGameVersions.value = []
}
const filteredVersions = computed(() => {
return props.versions.filter(
(projectVersion) =>
Expand Down

0 comments on commit 08b26f9

Please sign in to comment.