You've already forked AstralRinth
forked from didirus/AstralRinth
Project wireup (#80)
* Remove unneeded style * Base modpack wire up * Run lint * Thats not supposed to be there * Remove errant class * Fix safety * Username => ID * fix id missing * Fix bug with clicking * remove unnecessary * Update Versions.vue * Addressed changes * Lintttt
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<span v-if="version.featured">Auto-Featured</span>
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<Button color="primary">
|
||||
<Button color="primary" :action="() => install(version.id)">
|
||||
<DownloadIcon />
|
||||
Install
|
||||
</Button>
|
||||
@@ -53,7 +53,11 @@
|
||||
<span v-if="file.primary" class="primary-label"> Primary </span>
|
||||
</span>
|
||||
</span>
|
||||
<Button class="download">
|
||||
<Button
|
||||
v-if="project.project_type !== 'modpack' || file.primary"
|
||||
class="download"
|
||||
:action="() => install(version.id)"
|
||||
>
|
||||
<DownloadIcon />
|
||||
Install
|
||||
</Button>
|
||||
@@ -183,6 +187,10 @@ import { useRoute } from 'vue-router'
|
||||
const route = useRoute()
|
||||
|
||||
const props = defineProps({
|
||||
project: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
versions: {
|
||||
type: Array,
|
||||
required: true,
|
||||
@@ -195,6 +203,10 @@ const props = defineProps({
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
install: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
const version = ref(props.versions.find((version) => version.id === route.params.version))
|
||||
|
||||
Reference in New Issue
Block a user