aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/store/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/store/store.js')
-rw-r--r--web/src/js/store/store.js22
1 files changed, 2 insertions, 20 deletions
diff --git a/web/src/js/store/store.js b/web/src/js/store/store.js
index a16a0369..65355684 100644
--- a/web/src/js/store/store.js
+++ b/web/src/js/store/store.js
@@ -2,7 +2,6 @@
import _ from "lodash";
import $ from "jquery";
import {EventEmitter} from 'events';
-import { EventLogActions } from "../actions.js"
import {ActionTypes, StoreCmds} from "../actions.js";
import {AppDispatcher} from "../dispatcher.js";
@@ -118,7 +117,7 @@ _.extend(LiveStoreMixin.prototype, {
this.handle_fetch(message.data);
}.bind(this))
.fail(function () {
- EventLogActions.add_event("Could not fetch " + this.type);
+ console.error("Could not fetch " + this.type)
}.bind(this));
}
},
@@ -153,21 +152,4 @@ export function FlowStore() {
export function SettingsStore() {
return new LiveDictStore(ActionTypes.SETTINGS_STORE);
-}
-
-export function EventLogStore() {
- LiveListStore.call(this, ActionTypes.EVENT_STORE);
-}
-_.extend(EventLogStore.prototype, LiveListStore.prototype, {
- fetch: function(){
- LiveListStore.prototype.fetch.apply(this, arguments);
-
- // Make sure to display updates even if fetching all events failed.
- // This way, we can send "fetch failed" log messages to the log.
- if(this._fetchxhr){
- this._fetchxhr.fail(function(){
- this.handle_fetch(null);
- }.bind(this));
- }
- }
-});
+} \ No newline at end of file