Skip to content

Commit

Permalink
Merge pull request #5418 from Sage-Bionetworks/release-501
Browse files Browse the repository at this point in the history
merge release 501 into develop
  • Loading branch information
jay-hodgson committed Jun 6, 2024
2 parents 3a9bc52 + b4d4b37 commit 200d69e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GWTWrapperImpl implements GWTWrapper {

@Override
public String getHostPageBaseURL() {
return GWT.getHostPageBaseURL();
return getHostpageUrl();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void onFailure(Throwable caught) {
}

public void onSuccess(AddBatchOfFilesToDownloadListResponse result) {
String href = "DownloadCart:0";
String href = "/DownloadCart:0";
popupUtils.showInfo(
entityHeader.getName() + EntityBadge.ADDED_TO_DOWNLOAD_LIST,
href,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void onFailure(Throwable caught) {
}

public void onSuccess(AddBatchOfFilesToDownloadListResponse result) {
String href = "DownloadCart:0";
String href = "/DownloadCart:0";
popupUtils.showInfo(
entityName + EntityBadge.ADDED_TO_DOWNLOAD_LIST,
href,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,17 @@ public ButtonLinkWidgetViewImpl(
public void configure(
WikiPageKey wikiKey,
String buttonText,
final String url,
String url,
boolean isHighlight,
final boolean openInNewWindow
) {
clear();
button.setText(buttonText);
if (isHighlight) button.setType(ButtonType.INFO);
// Detect old #!, and direct to the right place
if (url.startsWith("#!")) {
url = "/" + url.substring("#!".length());
}
button.setHref(url);
if (openInNewWindow) {
button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public void testOnAddToDownloadListV2() {
verify(mockPopupUtils)
.showInfo(
header.getName() + EntityBadge.ADDED_TO_DOWNLOAD_LIST,
"DownloadCart:0",
"/DownloadCart:0",
DisplayConstants.VIEW_DOWNLOAD_LIST
);
verify(mockEventBus).fireEvent(any(DownloadListUpdatedEvent.class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public void testOnAddToDownloadListV2() {
verify(mockPopupUtils)
.showInfo(
entityName + EntityBadge.ADDED_TO_DOWNLOAD_LIST,
"DownloadCart:0",
"/DownloadCart:0",
DisplayConstants.VIEW_DOWNLOAD_LIST
);
verify(mockEventBus).fireEvent(any(DownloadListUpdatedEvent.class));
Expand Down

0 comments on commit 200d69e

Please sign in to comment.