mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 17:02:16 +00:00
added prettier
This commit is contained in:
35
resources/js/store/modules/payments.js
vendored
35
resources/js/store/modules/payments.js
vendored
@@ -1,33 +1,32 @@
|
||||
import {events} from "../../bus";
|
||||
import { events } from '../../bus'
|
||||
|
||||
const defaultState = {
|
||||
singleChargeAmount: undefined,
|
||||
singleChargeAmount: undefined,
|
||||
}
|
||||
|
||||
const actions = {
|
||||
callSingleChargeProcess: ({commit}, amount) => {
|
||||
callSingleChargeProcess: ({ commit }, amount) => {
|
||||
// Open popup with payment methods
|
||||
events.$emit('popup:open', { name: 'select-payment-method' })
|
||||
|
||||
// Open popup with payment methods
|
||||
events.$emit('popup:open', {name: 'select-payment-method'})
|
||||
|
||||
// Store charge amount
|
||||
commit('SET_SINGLE_CHARGE_AMOUNT', amount)
|
||||
},
|
||||
// Store charge amount
|
||||
commit('SET_SINGLE_CHARGE_AMOUNT', amount)
|
||||
},
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
SET_SINGLE_CHARGE_AMOUNT(state, amount) {
|
||||
state.singleChargeAmount = amount
|
||||
},
|
||||
SET_SINGLE_CHARGE_AMOUNT(state, amount) {
|
||||
state.singleChargeAmount = amount
|
||||
},
|
||||
}
|
||||
|
||||
const getters = {
|
||||
singleChargeAmount: state => state.singleChargeAmount,
|
||||
singleChargeAmount: (state) => state.singleChargeAmount,
|
||||
}
|
||||
|
||||
export default {
|
||||
state: defaultState,
|
||||
getters,
|
||||
actions,
|
||||
mutations
|
||||
}
|
||||
state: defaultState,
|
||||
getters,
|
||||
actions,
|
||||
mutations,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user