Skip to content

Commit d30643b

Browse files
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>
1 parent ab95dcf commit d30643b

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

apps/app-frontend/src/components/ui/InstanceCreationModal.vue

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,14 @@
4545
open-direction="top"
4646
:show-labels="false"
4747
/>
48-
<Checkbox
49-
v-if="showAdvanced"
50-
v-model="showSnapshots"
51-
class="filter-checkbox"
52-
label="Include snapshots"
53-
/>
48+
<Checkbox v-model="showSnapshots" class="filter-checkbox" label="Show all versions" />
5449
</div>
5550
</div>
56-
<div v-if="showAdvanced && loader !== 'vanilla'" class="input-row">
51+
<div v-if="loader !== 'vanilla'" class="input-row">
5752
<p class="input-label">Loader version</p>
5853
<Chips v-model="loader_version" :items="['stable', 'latest', 'other']" />
5954
</div>
60-
<div v-if="showAdvanced && loader_version === 'other' && loader !== 'vanilla'">
55+
<div v-if="loader_version === 'other' && loader !== 'vanilla'">
6156
<div v-if="game_version" class="input-row">
6257
<p class="input-label">Select version</p>
6358
<multiselect
@@ -75,10 +70,6 @@
7570
</div>
7671
</div>
7772
<div class="input-group push-right">
78-
<Button @click="toggle_advanced">
79-
<CodeIcon />
80-
{{ showAdvanced ? 'Hide advanced' : 'Show advanced' }}
81-
</Button>
8273
<Button @click="hide()">
8374
<XIcon />
8475
Cancel
@@ -198,7 +189,6 @@
198189

199190
<script setup>
200191
import {
201-
CodeIcon,
202192
FolderOpenIcon,
203193
FolderSearchIcon,
204194
InfoIcon,
@@ -236,7 +226,6 @@ const loader_version = ref('stable')
236226
const specified_loader_version = ref('')
237227
const icon = ref(null)
238228
const display_icon = ref(null)
239-
const showAdvanced = ref(false)
240229
const creating = ref(false)
241230
const showSnapshots = ref(false)
242231
const creationType = ref('custom')
@@ -248,7 +237,6 @@ defineExpose({
248237
specified_loader_version.value = ''
249238
profile_name.value = ''
250239
creating.value = false
251-
showAdvanced.value = false
252240
showSnapshots.value = false
253241
loader.value = 'vanilla'
254242
loader_version.value = 'stable'
@@ -417,10 +405,6 @@ const selectable_versions = computed(() => {
417405
return []
418406
})
419407
420-
const toggle_advanced = () => {
421-
showAdvanced.value = !showAdvanced.value
422-
}
423-
424408
const openFile = async () => {
425409
const newProject = await open({ multiple: false })
426410
if (!newProject) return

0 commit comments

Comments
 (0)