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

17 lines
725 B
JavaScript

export const encryptedAccount = {
SET_ENCRYPTED_ACCOUNT(state, { netId, publicKey, privateKey }) {
this._vm.$set(state.ui[`netId${netId}`], 'encryptedPublicKey', publicKey)
this._vm.$set(state.ui[`netId${netId}`], 'encryptedPrivateKey', privateKey)
},
CHECK_ACCOUNT(state, { netId, isExist }) {
this._vm.$set(state.ui[`netId${netId}`], 'isExistAccount', isExist)
},
REMOVE_KEY(state, { netId }) {
this._vm.$set(state.ui[`netId${netId}`], 'encryptedPublicKey', '')
this._vm.$set(state.ui[`netId${netId}`], 'encryptedPrivateKey', '')
},
SET_HIGHLIGHT_NOTE_ACCOUNT(state, { netId, isHighlighted }) {
this._vm.$set(state.ui[`netId${netId}`], 'isHighlightedNoteAccount', isHighlighted)
}
}