ohmage / gwt-front-end

The javascript/GWT code behind the front end.
6 stars 2 forks source link

Responses Tab doesn't show responses which were uploaded after the page is loaded #252

Open cketcham opened 12 years ago

cketcham commented 12 years ago

Steps to reproduce:

  1. Go to Response tab, choose the campaign, and press show responses.
  2. upload response on the phone
  3. press show responses again.

The new response is not shown. I would expect the new response to be at the top of the list.

ghost commented 12 years ago

Please add this starting at line 84 in edu/ucla/cens/mobilize/client/presenter/ResponsePresenter.java

// Campaign update handler this.eventBus.addHandler(CampaignInfoUpdatedEvent.TYPE, new CampaignInfoUpdatedEventHandler() { @Override public void onCampaignInfoUpdated(CampaignInfoUpdatedEvent event) { campaigns = event.getCampaigns(); } });