Browse Source

save buildings at change

master
Nero Ignis 4 years ago
parent
commit
6111e37184
  1. 6
      index.html

6
index.html

@ -168,11 +168,11 @@
<template v-for="building in buildings" v-if="building.amountPerLevel || building.intervalPerLevel || building.pricePerLevel"> <template v-for="building in buildings" v-if="building.amountPerLevel || building.intervalPerLevel || building.pricePerLevel">
<h3><strong>{{ building.name }}</strong></h3> <h3><strong>{{ building.name }}</strong></h3>
Amout per Level:<br/> Amout per Level:<br/>
<input class="form-control form-control-sandbox" type="text" v-for="amount in building.amountPerLevel" :value="amount"><br/> <input class="form-control form-control-sandbox" type="text" v-for="amount in building.amountPerLevel" @change="saveBuildingsToStorage()" :value="amount"><br/>
Interval per Level:<br/> Interval per Level:<br/>
<input class="form-control form-control-sandbox" type="text" v-for="interval in building.intervalPerLevel" :value="interval"><br/> <input class="form-control form-control-sandbox" type="text" v-for="interval in building.intervalPerLevel" @change="saveBuildingsToStorage()" :value="interval"><br/>
Price per Level:<br/> Price per Level:<br/>
<input class="form-control form-control-sandbox" type="text" v-for="price in building.pricePerLevel" :value="price"><br/> <input class="form-control form-control-sandbox" type="text" v-for="price in building.pricePerLevel" @change="saveBuildingsToStorage()" :value="price"><br/>
<hr/><br/> <hr/><br/>
</template> </template>
</div> </div>

Loading…
Cancel
Save