classic-ui/modules/account/store/mutations/EncryptedAccount.js
FreezyEx b32527e057 Revert "minor fixes"
This reverts commit 7f8f7c2aa15c8b8c6a7449d177f46f8a417e2f67.
2022-10-13 16:03:54 +02: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)
}
}