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

11 lines
323 B
JavaScript
Raw Normal View History

2022-04-22 06:05:56 +03: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)
}
}