pass showKeys as prop to merchant-details child and use emit to toggle (#105)
previously, index and its child compoment merchant-details had their own booleans and their values were not synched. Using a prop avoids this problem
This commit is contained in:
parent
8efcd07203
commit
cf82ed478d
4 changed files with 8 additions and 9 deletions
|
|
@ -11,7 +11,8 @@
|
|||
:merchant-id="merchant.id"
|
||||
:inkey="g.user.wallets[0].inkey"
|
||||
:adminkey="g.user.wallets[0].adminkey"
|
||||
@show-keys="toggleMerchantKeys"
|
||||
:show-keys="showKeys"
|
||||
@toggle-show-keys="toggleShowKeys"
|
||||
@merchant-deleted="handleMerchantDeleted"
|
||||
></merchant-details>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue