mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
26 lines
580 B
JavaScript
26 lines
580 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.log(err);
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default alt.createActions(WalletSettingsActions);
|