diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-09 20:32:06 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-09 20:32:06 -0400 |
| commit | ea4ab9d57b9c5b66508a3e24268997f70302cdc5 (patch) | |
| tree | a8d64afc0699a6322004166b6f35cda340779594 /src/client/views/nodes/IconBox.tsx | |
| parent | 3b012d7555c0f32b88a2506b1f474262df5a5f2d (diff) | |
| parent | 30aaf7c496eb4cbebac1e4cf9e0695cd286c63f2 (diff) | |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/IconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/IconBox.tsx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/client/views/nodes/IconBox.tsx b/src/client/views/nodes/IconBox.tsx index 19abec4af..4bcb4c636 100644 --- a/src/client/views/nodes/IconBox.tsx +++ b/src/client/views/nodes/IconBox.tsx @@ -24,17 +24,6 @@ library.add(faFilm); @observer export class IconBox extends React.Component<FieldViewProps> { public static LayoutString() { return FieldView.LayoutString(IconBox); } - _reactionDisposer?: IReactionDisposer; - componentDidMount() { - this._reactionDisposer = reaction(() => [this.props.Document.maximizedDocs], - async () => { - let maxDoc = await DocListCast(this.props.Document.maximizedDocs); - this.props.Document.title = (maxDoc && maxDoc.length === 1 ? maxDoc[0].title + ".icon" : ""); - }, { fireImmediately: true }); - } - componentWillUnmount() { - if (this._reactionDisposer) this._reactionDisposer(); - } @computed get layout(): string { const field = Cast(this.props.Document[this.props.fieldKey], IconField); return field ? field.icon : "<p>Error loading icon data</p>"; } @computed get minimizedIcon() { return IconBox.DocumentIcon(this.layout); } |
