diff options
author | Monika Hedman <monika_hedman@brown.edu> | 2019-04-30 16:36:39 -0400 |
---|---|---|
committer | Monika Hedman <monika_hedman@brown.edu> | 2019-04-30 16:36:39 -0400 |
commit | bad0dedb8be3d62f7dbc72abbfe146e1873195cf (patch) | |
tree | a4e989b6d2df60124f0908910052b589b3895a4d /src/client/views/DocumentDecorations.tsx | |
parent | 77c575d5da1ecd9499dbc82c9686cf4cd87cf237 (diff) | |
parent | 86e89178628a27a91665ad835046e536bdb89729 (diff) |
pulled
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 18449ed32..de17e1aef 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -496,7 +496,9 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> anchorPoint={anchorPoints.RIGHT_TOP} content={<LinkMenu docView={selFirst} changeFlyout={this.changeFlyoutContent} />}> - <div className={"linkButton-" + (selFirst.props.Document.GetData(KeyStore.LinkedToDocs, ListField, []).length ? "nonempty" : "empty")} onPointerDown={this.onLinkButtonDown} >{linkCount}</div> + <div className={"linkButton-" + (selFirst.props.Document.GetData(KeyStore.LinkedToDocs, ListField, []).length || + selFirst.props.Document.GetData(KeyStore.LinkedFromDocs, ListField, []).length + ? "nonempty" : "empty")} onPointerDown={this.onLinkButtonDown} >{linkCount}</div> </Flyout>); } |