classic-ui/modules/account/store/mutations/Addresses.js
Danil Kovtonyuk 44f31f8b9f
init
2022-04-22 13:14:19 +10:00

11 lines
323 B
JavaScript

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)
}
}