aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorkimdahey <claire_kim1@brown.edu>2019-07-30 13:32:24 -0400
committerkimdahey <claire_kim1@brown.edu>2019-07-30 13:32:24 -0400
commitc3dcf252e53584b097e3bb2261c72c78786ab16c (patch)
tree0fa5c1b435ab4e4c330b223a29733637e131ff11 /src/client
parentf03f94accabc2336d1c143fcb80bb0c3f5b70d99 (diff)
added description of view-mode for chrome status in collectionview
Diffstat (limited to 'src/client')
-rw-r--r--src/client/views/collections/CollectionView.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index b7ac8768f..186b612d0 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -45,6 +45,7 @@ export class CollectionView extends React.Component<FieldViewProps> {
this._reactionDisposer = reaction(() => StrCast(this.props.Document.chromeStatus),
() => {
// chrome status is one of disabled, collapsed, or visible. this determines initial state from document
+ // chrome status may also be view-mode, in reference to stacking view's toggle mode. it is essentially disabled mode, but prevents the toggle button from showing up on the left sidebar.
let chromeStatus = this.props.Document.chromeStatus;
if (chromeStatus && (chromeStatus === "disabled" || chromeStatus === "collapsed")) {
runInAction(() => this._collapsed = true);