mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
26 lines
539 B
JavaScript
26 lines
539 B
JavaScript
'use strict';
|
|
|
|
import alt from '../alt';
|
|
import WhitelabelFetcher from '../fetchers/whitelabel_fetcher';
|
|
|
|
|
|
class WhitelabelActions {
|
|
constructor() {
|
|
this.generateActions(
|
|
'updateWhitelabel'
|
|
);
|
|
}
|
|
|
|
fetchWhitelabel() {
|
|
WhitelabelFetcher.fetch()
|
|
.then((res) => {
|
|
this.actions.updateWhitelabel(res.whitelabel);
|
|
})
|
|
.catch((err) => {
|
|
console.log(err);
|
|
});
|
|
}
|
|
}
|
|
|
|
export default alt.createActions(WhitelabelActions);
|