diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-12-03 12:34:46 -0500 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-12-03 12:34:46 -0500 |
| commit | 0961e03a6ba250fa8aa813d763975c5d25082349 (patch) | |
| tree | b5632caebd85f32e44bdffa8fb072f9e5086437c /src/client/views/DocumentButtonBar.tsx | |
| parent | 1722edb46a62ea8fadafc2b5aab7e89203252513 (diff) | |
| parent | 7866dd1700d6a3457e0f0255428ee42e5c7d8ff9 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
| -rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index 15cbd2788..7f125dd34 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -21,7 +21,6 @@ import React = require("react"); import { DocumentView } from './nodes/DocumentView'; import { ParentDocSelector } from './collections/ParentDocumentSelector'; import { CollectionDockingView } from './collections/CollectionDockingView'; -import { DocumentDecorations } from './DocumentDecorations'; const higflyout = require("@hig/flyout"); export const { anchorPoints } = higflyout; export const Flyout = higflyout.default; @@ -57,13 +56,13 @@ export class DocumentButtonBar extends React.Component<{ views: DocumentView[], @observable private openHover = false; - public static Instance: DocumentButtonBar; + @observable public static Instance: DocumentButtonBar; public static hasPushedHack = false; public static hasPulledHack = false; constructor(props: { views: DocumentView[] }) { super(props); - DocumentButtonBar.Instance = this; + runInAction(() => DocumentButtonBar.Instance = this); } public startPullOutcome = action((success: boolean) => { |
