mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
Support showing only notebook output scenario (#177)
* Enable hiding prompt when hiding inputs (so that only output is showing) * Fix format * Rename variable * Use nteract prompt instead of copying source
This commit is contained in:
@@ -35,13 +35,19 @@ const onInit = async () => {
|
||||
const galleryItemJunoResponse = await junoClient.getNotebookInfo(galleryItemId);
|
||||
galleryItem = galleryItemJunoResponse.data;
|
||||
}
|
||||
render(notebookUrl, backNavigationText, hideInputs, galleryItem, onBackClick);
|
||||
|
||||
// The main purpose of hiding the prompt is to hide everything when hiding inputs.
|
||||
// It is generally not very useful to just hide the prompt.
|
||||
const hidePrompts = hideInputs;
|
||||
|
||||
render(notebookUrl, backNavigationText, hideInputs, hidePrompts, galleryItem, onBackClick);
|
||||
};
|
||||
|
||||
const render = (
|
||||
notebookUrl: string,
|
||||
backNavigationText: string,
|
||||
hideInputs: boolean,
|
||||
hideInputs?: boolean,
|
||||
hidePrompts?: boolean,
|
||||
galleryItem?: IGalleryItem,
|
||||
onBackClick?: () => void
|
||||
) => {
|
||||
@@ -51,6 +57,7 @@ const render = (
|
||||
galleryItem,
|
||||
backNavigationText,
|
||||
hideInputs,
|
||||
hidePrompts,
|
||||
onBackClick: onBackClick,
|
||||
onTagClick: undefined
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user