Open newly created saves automatically

This commit is contained in:
thepaperpilot 2022-04-30 18:41:04 -05:00
parent c692578da7
commit 77bcc10580

View file

@ -33,7 +33,7 @@
<div class="field"> <div class="field">
<span class="field-title">Create Save</span> <span class="field-title">Create Save</span>
<div class="field-buttons"> <div class="field-buttons">
<button class="button" @click="newSave">New Game</button> <button class="button" @click="openSave(newSave().id)">New Game</button>
<Select <Select
v-if="Object.keys(bank).length > 0" v-if="Object.keys(bank).length > 0"
:options="bank" :options="bank"
@ -263,6 +263,8 @@ function newFromPreset(preset: string) {
save(playerData as PlayerData); save(playerData as PlayerData);
settings.saves.push(playerData.id); settings.saves.push(playerData.id);
openSave(playerData.id);
} }
function editSave(id: string, newName: string) { function editSave(id: string, newName: string) {