X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=skyquake%2Fframework%2Fwidgets%2Fskyquake_container%2FskyquakeContainerStore.js;h=f69014ebfac65312dbf6b260175001163c98854c;hb=93bac8fefb064dbefb2cc08d3ae3aa84e84f0320;hp=aa4e7448f9d7b52018e4e145e8613d7540f8f5b0;hpb=dfe972ff7c9f7b6b1d730e66b0b2aa8df2ce329b;p=osm%2FUI.git diff --git a/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js b/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js index aa4e7448f..f69014ebf 100644 --- a/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js +++ b/skyquake/framework/widgets/skyquake_container/skyquakeContainerStore.js @@ -173,8 +173,8 @@ class SkyquakeContainerStore { } else { state.notificationMessage = data.msg; - if(data.type == 'success') { - state.notificationType = 'success'; + if(data.type) { + state.notificationType = data.type; } } this.setState(state); @@ -236,4 +236,4 @@ function getCurrentPlugin() { } } -export default Alt.createStore(SkyquakeContainerStore); +export default Alt.createStore(SkyquakeContainerStore, 'SkyquakeContainerStore');