projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "RIFT-15944 - editing an ‘id’ field is troublesome as focus is lost on each...
[osm/UI.git]
/
skyquake
/
plugins
/
debug
/
src
/
crashStore.js
diff --git
a/skyquake/plugins/debug/src/crashStore.js
b/skyquake/plugins/debug/src/crashStore.js
index
c5ded18
..
0b04445
100644
(file)
--- a/
skyquake/plugins/debug/src/crashStore.js
+++ b/
skyquake/plugins/debug/src/crashStore.js
@@
-20,20
+20,31
@@
import Alt from 'widgets/skyquake_container/skyquakeAltInstance';
function crashStore () {
this.exportAsync(require('./crashSource.js'));
this.bindActions(require('./crashActions.js'));
function crashStore () {
this.exportAsync(require('./crashSource.js'));
this.bindActions(require('./crashActions.js'));
+ this.isLoading = false;
+ this.crashList = null;
}
crashStore.prototype.getCrashDetailsSuccess = function(list) {
this.setState({
}
crashStore.prototype.getCrashDetailsSuccess = function(list) {
this.setState({
- crashList:list
+ isLoading: false,
+ crashList: list
})
})
- console.log('success', list)
+ console.log('
Crash details load
success', list)
};
crashStore.prototype.getCrashDetailsLoading = function(info) {
};
crashStore.prototype.getCrashDetailsLoading = function(info) {
+ this.setState({
+ isLoading: true,
+ crashList: null,
+ })
console.log('Loading crash details...', info)
};
crashStore.prototype.getCrashDetailsFailure = function(info) {
console.log('Loading crash details...', info)
};
crashStore.prototype.getCrashDetailsFailure = function(info) {
+ this.setState({
+ isLoading: false,
+ error: info
+ })
console.log('Failed to retrieve crash/debug details', info)
};
console.log('Failed to retrieve crash/debug details', info)
};
-module.exports = Alt.createStore(crashStore);;
+module.exports = Alt.createStore(crashStore
, 'crashStore'
);;