From 543ae9fe4af0adfe52246bd4384042c214c45f81 Mon Sep 17 00:00:00 2001 From: Srinath Narayanan Date: Wed, 15 Jul 2020 09:53:06 -0700 Subject: [PATCH] Added infinite progress bar when gallery read-only notebook viewer loads (#90) * Added infinite progress bar when gallery notebook content loads - reused infinite progress bar from magic commands * made single quotes to double quotes * formatting changes * updated state * changed to ProgressIndicator * undo packgae.json change --- .../NotebookViewer/NotebookViewerComponent.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Controls/NotebookViewer/NotebookViewerComponent.tsx b/src/Explorer/Controls/NotebookViewer/NotebookViewerComponent.tsx index 0dc7dfcee..fa53873fe 100644 --- a/src/Explorer/Controls/NotebookViewer/NotebookViewerComponent.tsx +++ b/src/Explorer/Controls/NotebookViewer/NotebookViewerComponent.tsx @@ -3,7 +3,7 @@ */ import { Notebook } from "@nteract/commutable"; import { createContentRef } from "@nteract/core"; -import { Icon, Link } from "office-ui-fabric-react"; +import { Icon, Link, ProgressIndicator } from "office-ui-fabric-react"; import * as React from "react"; import { contents } from "rx-jupyter"; import * as Logger from "../../../Common/Logger"; @@ -36,6 +36,7 @@ interface NotebookViewerComponentState { galleryItem?: IGalleryItem; isFavorite?: boolean; dialogProps: DialogProps; + showProgressBar: boolean; } export class NotebookViewerComponent extends React.Component @@ -65,7 +66,8 @@ export class NotebookViewerComponent extends React.Component )} + {this.state.showProgressBar && } + {this.notebookComponentBootstrapper.renderComponent(NotebookReadOnlyRenderer, { hideInputs: this.props.hideInputs })}