Disable play button if no state selected

This commit is contained in:
Chandler Swift 2024-03-07 01:27:10 -06:00
parent 92518cee5a
commit 72844f83ce
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -17,7 +17,7 @@
<option value="" selected>Select a state…</option> <option value="" selected>Select a state…</option>
<option v-for="state in states">{{ state }}</option> <option v-for="state in states">{{ state }}</option>
</select> </select>
<button class="btn btn-primary" type="button" @click="launch" :disabled="launched">Play</button> <button class="btn btn-primary" type="button" @click="launch" :disabled="launched || !state_name">Play</button>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<button class="btn btn-secondary" type="button" @click="save" :disabled="!launched">Save</button> <button class="btn btn-secondary" type="button" @click="save" :disabled="!launched">Save</button>