Add top bar in standalone gallery and notebook viewer (#76)

* Add top bar in standalone gallery

* Address review comments
This commit is contained in:
Tanuj Mittal
2020-07-08 12:40:47 -07:00
committed by GitHub
parent 955d08e4d0
commit 5a1dd42395
9 changed files with 92 additions and 106 deletions

View File

@@ -41,6 +41,7 @@ function showOkCancelModalDialog(
title: string,
msg: string,
linkProps: LinkProps,
showCloseButton: boolean,
okLabel: string,
onOk: () => void,
cancelLabel: string,
@@ -61,7 +62,9 @@ function showOkCancelModalDialog(
onSecondaryButtonClick: () => {
component.setDialogProps(undefined);
onCancel && onCancel();
}
},
showCloseButton,
onDismiss: () => component.setDialogProps(undefined)
});
}
@@ -121,6 +124,7 @@ export function downloadItem(
linkText: "Learn more about Cosmos DB",
linkUrl: "https://azure.microsoft.com/en-us/services/cosmos-db"
},
true,
"Open data explorer",
() => {
window.open("https://cosmos.azure.com");