add wealth update boilerplate
This commit is contained in:
@@ -26,7 +26,10 @@
|
||||
</div>
|
||||
</header>
|
||||
<div class="card-content">
|
||||
<Wealth v-bind:wealth="player.wealth"></Wealth>
|
||||
<Wealth :wealth="player.wealth"
|
||||
:edit="edit_wealth"
|
||||
@updated="edit_wealth = !edit_wealth">
|
||||
</Wealth>
|
||||
<p class="notification is-warning" v-show="!playerIsGroup">Dette : {{ player.debt }}gp</p>
|
||||
</div>
|
||||
<footer class="card-footer">
|
||||
@@ -34,7 +37,7 @@
|
||||
href="#" class="card-footer-item is-dark">
|
||||
Coffre
|
||||
</a>
|
||||
<a href="#" class="card-footer-item">Argent</a>
|
||||
<a @click="edit_wealth = !edit_wealth" href="#" class="card-footer-item">Argent</a>
|
||||
<a href="#" class="card-footer-item disabled">Historique</a>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -71,6 +74,7 @@
|
||||
{id: 3, name: "Fefi"},
|
||||
],
|
||||
show_dropdown: false,
|
||||
edit_wealth: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user