fixed bug showing double filter panel when redirected from notifications (showing single feed)

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@101459 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-11-04 22:24:32 +00:00
parent 21d991b48a
commit 0155184560
1 changed files with 2 additions and 3 deletions

View File

@ -284,7 +284,6 @@ public class NewsFeedPanel extends Composite {
"We're sorry, it seems you used an invalid character, please check the hashtag</div>")); "We're sorry, it seems you used an invalid character, please check the hashtag</div>"));
return; return;
} }
GWT.log("Found hashtag " + hashtag);
showFeedsByHashtag(hashtag); showFeedsByHashtag(hashtag);
filterPanel.removeFilterSelected(); filterPanel.removeFilterSelected();
} }
@ -295,7 +294,7 @@ public class NewsFeedPanel extends Composite {
} }
//adjustments in the UI Depending on the scope //adjustments in the UI Depending on the scope
if (result.isInfrastructure()) { if (result.isInfrastructure()) {
filterPanelWrapper.setVisible(true); filterPanelWrapper.setVisible(getFeedToShowId() == null);
showFeedTimelineSource = result.isShowTimelineSourceLabel(); showFeedTimelineSource = result.isShowTimelineSourceLabel();
isInfrastructure = true; isInfrastructure = true;
} }
@ -380,7 +379,7 @@ public class NewsFeedPanel extends Composite {
"</a> "; "</a> ";
newsPanel.add(new HTML("<div class=\"nofeed-message\"><div style=\"padding-top: 90px;\">" + newsPanel.add(new HTML("<div class=\"nofeed-message\"><div style=\"padding-top: 90px;\">" +
"We're sorry, "+ usrLink +" removed the post in the meantime!</div></div>")); "We're sorry, "+ usrLink +" removed the post in the meantime!</div></div>"));
} else{ } else {
newsPanel.add(new ResultsFor("selected post", "")); newsPanel.add(new ResultsFor("selected post", ""));
newsPanel.setHeight(""); newsPanel.setHeight("");
newsPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT); newsPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);