forked from didirus/AstralRinth
Always enable "advanced" instance creation options (#4161)
* Update InstanceCreationModal.vue Signed-off-by: Felix <60808107+ItsFelix5@users.noreply.github.com> * change checkbox label * remove unused icon * lint --------- Signed-off-by: Felix <60808107+ItsFelix5@users.noreply.github.com> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
@@ -45,19 +45,14 @@
|
|||||||
open-direction="top"
|
open-direction="top"
|
||||||
:show-labels="false"
|
:show-labels="false"
|
||||||
/>
|
/>
|
||||||
<Checkbox
|
<Checkbox v-model="showSnapshots" class="filter-checkbox" label="Show all versions" />
|
||||||
v-if="showAdvanced"
|
|
||||||
v-model="showSnapshots"
|
|
||||||
class="filter-checkbox"
|
|
||||||
label="Include snapshots"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showAdvanced && loader !== 'vanilla'" class="input-row">
|
<div v-if="loader !== 'vanilla'" class="input-row">
|
||||||
<p class="input-label">Loader version</p>
|
<p class="input-label">Loader version</p>
|
||||||
<Chips v-model="loader_version" :items="['stable', 'latest', 'other']" />
|
<Chips v-model="loader_version" :items="['stable', 'latest', 'other']" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showAdvanced && loader_version === 'other' && loader !== 'vanilla'">
|
<div v-if="loader_version === 'other' && loader !== 'vanilla'">
|
||||||
<div v-if="game_version" class="input-row">
|
<div v-if="game_version" class="input-row">
|
||||||
<p class="input-label">Select version</p>
|
<p class="input-label">Select version</p>
|
||||||
<multiselect
|
<multiselect
|
||||||
@@ -75,10 +70,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group push-right">
|
<div class="input-group push-right">
|
||||||
<Button @click="toggle_advanced">
|
|
||||||
<CodeIcon />
|
|
||||||
{{ showAdvanced ? 'Hide advanced' : 'Show advanced' }}
|
|
||||||
</Button>
|
|
||||||
<Button @click="hide()">
|
<Button @click="hide()">
|
||||||
<XIcon />
|
<XIcon />
|
||||||
Cancel
|
Cancel
|
||||||
@@ -198,7 +189,6 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import {
|
||||||
CodeIcon,
|
|
||||||
FolderOpenIcon,
|
FolderOpenIcon,
|
||||||
FolderSearchIcon,
|
FolderSearchIcon,
|
||||||
InfoIcon,
|
InfoIcon,
|
||||||
@@ -236,7 +226,6 @@ const loader_version = ref('stable')
|
|||||||
const specified_loader_version = ref('')
|
const specified_loader_version = ref('')
|
||||||
const icon = ref(null)
|
const icon = ref(null)
|
||||||
const display_icon = ref(null)
|
const display_icon = ref(null)
|
||||||
const showAdvanced = ref(false)
|
|
||||||
const creating = ref(false)
|
const creating = ref(false)
|
||||||
const showSnapshots = ref(false)
|
const showSnapshots = ref(false)
|
||||||
const creationType = ref('custom')
|
const creationType = ref('custom')
|
||||||
@@ -248,7 +237,6 @@ defineExpose({
|
|||||||
specified_loader_version.value = ''
|
specified_loader_version.value = ''
|
||||||
profile_name.value = ''
|
profile_name.value = ''
|
||||||
creating.value = false
|
creating.value = false
|
||||||
showAdvanced.value = false
|
|
||||||
showSnapshots.value = false
|
showSnapshots.value = false
|
||||||
loader.value = 'vanilla'
|
loader.value = 'vanilla'
|
||||||
loader_version.value = 'stable'
|
loader_version.value = 'stable'
|
||||||
@@ -417,10 +405,6 @@ const selectable_versions = computed(() => {
|
|||||||
return []
|
return []
|
||||||
})
|
})
|
||||||
|
|
||||||
const toggle_advanced = () => {
|
|
||||||
showAdvanced.value = !showAdvanced.value
|
|
||||||
}
|
|
||||||
|
|
||||||
const openFile = async () => {
|
const openFile = async () => {
|
||||||
const newProject = await open({ multiple: false })
|
const newProject = await open({ multiple: false })
|
||||||
if (!newProject) return
|
if (!newProject) return
|
||||||
|
|||||||
Reference in New Issue
Block a user