Visu Sent Monete
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import {
|
||||
IAccount,
|
||||
ICircuit, ICircuitState, IGlobalState,
|
||||
} from '@src/model'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
@@ -29,6 +30,12 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
},
|
||||
|
||||
actions: {
|
||||
getRemainingCoinsToSend(account: IAccount) {
|
||||
return tools.roundDec2(account.saldo + account.fidoConcesso)
|
||||
},
|
||||
getMaxCoinsToSend(account: IAccount) {
|
||||
return tools.roundDec2(account.qta_maxConcessa - account.saldo)
|
||||
},
|
||||
|
||||
async loadCircuits() {
|
||||
return Api.SendReq('/users/circuits', 'POST', null)
|
||||
|
||||
Reference in New Issue
Block a user