classic-ui-dev/modules/account/store/mutations/Addresses.js

11 lines
323 B
JavaScript
Raw Normal View History

2022-04-21 23:05:56 -04:00
import { initialUiState } from '../state/ui'
export const addresses = {
SET_ADDRESSES(state, { netId, addresses }) {
this._vm.$set(state.ui[`netId${netId}`], 'addresses', addresses)
},
REMOVE_ADDRESSES(state, { netId }) {
this._vm.$set(state.ui[`netId${netId}`], 'addresses', initialUiState.addresses)
}
}