aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-22 18:07:45 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-22 18:07:45 -0500
commit66bcfb6364ca5d8b4a0fd26139966ea9d6c12f87 (patch)
tree1ebe5791f5b5d534353f94d207b44b657ccc5965 /src/client/views/collections
parenta99cef9945c1c4f9e5ff07663fc6db5cda2dcd50 (diff)
adding buttons
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionView.tsx2
-rw-r--r--src/client/views/collections/collectionFreeForm/PropertiesView.scss12
-rw-r--r--src/client/views/collections/collectionFreeForm/PropertiesView.tsx8
3 files changed, 20 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index eec68f9fc..853321d3c 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -50,6 +50,7 @@ import './CollectionView.scss';
import CollectionMenu from './CollectionMenu';
import { SharingPermissions } from '../../util/SharingManager';
import { PropertiesView } from './collectionFreeForm/PropertiesView';
+import { DocumentView } from '../nodes/DocumentView';
const higflyout = require("@hig/flyout");
export const { anchorPoints } = higflyout;
export const Flyout = higflyout.default;
@@ -589,6 +590,7 @@ export class CollectionView extends Touchable<FieldViewProps & CollectionViewCus
overflow: this.propertiesWidth() < 15 ? "hidden" : undefined
}}>
<PropertiesView dataDoc={this.dataDoc} Document={this.props.Document}
+ docView={CollectionView as unknown as DocumentView}
width={this._propertiesWidth}
height={this.props.PanelHeight()}
renderDepth={this.props.renderDepth}
diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.scss b/src/client/views/collections/collectionFreeForm/PropertiesView.scss
index e81b1eeb4..98eae1ac7 100644
--- a/src/client/views/collections/collectionFreeForm/PropertiesView.scss
+++ b/src/client/views/collections/collectionFreeForm/PropertiesView.scss
@@ -28,6 +28,18 @@
padding: 8.5px;
font-size: 12.5px;
font-weight: bold;
+
+ .propertiesView-settings-title {
+ font-weight: bold;
+ font-size: 12.5px;
+ padding-bottom: 7px;
+ }
+
+ .propertiesView-settings-content {
+ margin-left: 5px;
+ padding-bottom: 10px;
+ }
+
}
.propertiesView-fields {
diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx
index 27b0dbd9e..5242aa8fd 100644
--- a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx
+++ b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx
@@ -13,6 +13,7 @@ import { ContentFittingDocumentView } from "../../nodes/ContentFittingDocumentVi
import { returnFalse, returnOne, emptyFunction, emptyPath, returnTrue, returnZero, returnEmptyFilter, Utils } from "../../../../Utils";
import { Id } from "../../../../fields/FieldSymbols";
import { Transform } from "../../../util/Transform";
+import { PropertiesButtons } from "../../PropertiesButtons";
interface PropertiesViewProps {
@@ -22,7 +23,7 @@ interface PropertiesViewProps {
height: number;
renderDepth: number;
ScreenToLocalTransform: () => Transform;
- //docView: DocumentView;
+ docView: DocumentView;
}
@observer
@@ -125,7 +126,10 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
Collection
</div>
<div className="propertiesView-settings">
- Settings
+ <div className="propertiesView-settings-title"> Settings</div>
+ <div className="propertiesView-settings-content">
+ <PropertiesButtons doc={this.props.Document} />
+ </div>
</div>
<div className="propertiesView-fields">
<div className="propertiesView-fields-title"> Fields</div>