1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
onion/js/actions/wallet_settings_actions.js
2015-10-06 16:47:59 +02:00

26 lines
590 B
JavaScript

'use strict';
import { alt } from '../alt';
import WalletSettingsFetcher from '../fetchers/wallet_settings_fetcher';
class WalletSettingsActions {
constructor() {
this.generateActions(
'updateWalletSettings'
);
}
fetchWalletSettings() {
WalletSettingsFetcher.fetchOne()
.then((res) => {
this.actions.updateWalletSettings(res.wallet_settings);
})
.catch((err) => {
console.logGlobal(err);
});
}
}
export default alt.createActions(WalletSettingsActions);