classic-ui/modules/account/injectors/setupInjectors.js
FreezyEx b32527e057 Revert "minor fixes"
This reverts commit 7f8f7c2aa15c8b8c6a7449d177f46f8a417e2f67.
2022-10-13 16:03:54 +02:00

21 lines
617 B
JavaScript

import { mapActions, mapGetters, mapState } from 'vuex'
export const setupMethods = {
...mapActions('loading', ['enable', 'disable']),
...mapActions('notice', ['addNoticeWithInterval']),
...mapActions('encryptedNote', [
'clearState',
'decryptNotes',
'setupAccount',
'recoverAccountFromKey',
'saveRecoveryKeyOnFile',
'recoverAccountFromChain'
])
}
export const setupComputed = {
...mapState('metamask', ['isInitialized', 'providerName']),
...mapGetters('metamask', ['isLoggedIn', 'isPartialSupport']),
...mapGetters('encryptedNote', ['isExistAccount', 'setupAccountRequest'])
}