Skip to content

Commit

Permalink
add provider field to event; rework store content
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberio-baptista committed Oct 4, 2023
1 parent de52e7c commit f8387dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class PluginForm extends React.Component {
node,
"result-selection-ready",
{
"query": RequestStore.get(),
"request": RequestStore.get(),
"selected": ResultsSelected.get(),
"search": SearchStore.get()
}
Expand Down
11 changes: 7 additions & 4 deletions dicoogle/src/main/resources/webapp/js/stores/requestStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ const RequestStore = Reflux.createStore({
listenables: RequestActions,

init: function() {
this._contents = "";
this._query = "";
this._provider = "";
},

onQuery: function(data) {
this._contents = data
onQuery: function(query, provider) {
this._query = query
this._provider = provider
},

get: function() {
return {
contents: this._contents
query: this._query,
provider: this._provider
};
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SearchStore = Reflux.createStore({
onSearch: function(data) {
var self = this;

RequestActions.query(data.text)
RequestActions.query(data.text, data.provider)

getPatients(
data.text,
Expand Down

0 comments on commit f8387dd

Please sign in to comment.