mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 19:30:57 +00:00
6efe1aa6a9
Lets re-evaluate in June next year when it's actually released
18 lines
474 B
JavaScript
18 lines
474 B
JavaScript
var ActionTypes = {
|
|
SETTINGS_UPDATE: "SETTINGS_UPDATE",
|
|
EVENTLOG_ADD: "EVENTLOG_ADD"
|
|
};
|
|
|
|
var SettingsActions = {
|
|
update:function(settings) {
|
|
settings = _.merge({}, SettingsStore.getAll(), settings);
|
|
//TODO: Update server.
|
|
|
|
//Facebook Flux: We do an optimistic update on the client already.
|
|
AppDispatcher.dispatchViewAction({
|
|
actionType: ActionTypes.SETTINGS_UPDATE,
|
|
settings: settings
|
|
});
|
|
}
|
|
};
|