aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/documents/Documents.ts6
-rw-r--r--src/client/views/FilterPanel.tsx9
-rw-r--r--src/client/views/MainView.scss8
-rw-r--r--src/client/views/MainView.tsx2
4 files changed, 9 insertions, 16 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 5d7ca6f6d..5d8ae19fc 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -88,7 +88,7 @@ class BoolInfo extends FInfo {
class NumInfo extends FInfo {
fieldType? = 'number';
values?: number[] = [];
- constructor(d: string, readOnly?: boolean, values?: number[]) {
+ constructor(d: string, readOnly?: boolean, values?: number[], filterable?:boolean) {
super(d, readOnly);
this.values = values;
}
@@ -104,7 +104,7 @@ class StrInfo extends FInfo {
class DocInfo extends FInfo {
fieldType? = 'Doc';
values?: Doc[] = [];
- constructor(d: string, values?: Doc[]) {
+ constructor(d: string, filterable?:boolean, values?: Doc[] ) {
super(d, true);
this.values = values;
}
@@ -183,7 +183,7 @@ export class DocumentOptions {
caption?: RichTextField;
author?: string; // STRt = new StrInfo('creator of document'); // bcz: don't change this. Otherwise, the userDoc's field Infos will have a FieldInfo assigned to its author field which will render it unreadable
author_date?: DATEt = new DateInfo('date the document was created', true);
- annotationOn?: DOCt = new DocInfo('document annotated by this document');
+ annotationOn?: DOCt = new DocInfo('document annotated by this document', false);
color?: STRt = new StrInfo('foreground color data doc');
hidden?: BOOLt = new BoolInfo('whether the document is not rendered by its collection');
backgroundColor?: STRt = new StrInfo('background color for data doc');
diff --git a/src/client/views/FilterPanel.tsx b/src/client/views/FilterPanel.tsx
index 54701b7f8..127708ca3 100644
--- a/src/client/views/FilterPanel.tsx
+++ b/src/client/views/FilterPanel.tsx
@@ -226,8 +226,6 @@ export class FilterPanel extends React.Component<filterProps> {
Array.from(this.activeRenderedFacetInfos.keys()).map(renderInfo => {
if ( renderInfo.renderType === "range" && renderInfo.facetHeader === facetHeader) {
- console.log("THIS IS ONLY SHWOIGN UP ONCE ")
- console.log("hope same thing "+ this.targetDoc?._childFiltersByRanges?.toString + " extra " + renderInfo.range)
this._collapseReturnKeys.push(renderInfo.range)
}
@@ -316,16 +314,11 @@ export class FilterPanel extends React.Component<filterProps> {
this._selectedFacetHeaders.delete(renderInfo.facetHeader)
this._chosenFacetsCollapse.delete(renderInfo.facetHeader)
-
if (renderInfo.domain){
Doc.setDocRangeFilter(this.targetDoc, renderInfo.facetHeader, renderInfo.domain, 'remove')
- }
-
- })} >
+ }})} >
<CiCircleRemove/> </div>
- {/* </div> */}
-
</div>
{ this._chosenFacetsCollapse.get(renderInfo.facetHeader) ?
diff --git a/src/client/views/MainView.scss b/src/client/views/MainView.scss
index b3faff442..8a7f5132b 100644
--- a/src/client/views/MainView.scss
+++ b/src/client/views/MainView.scss
@@ -194,11 +194,11 @@ h1,
left: 0;
position: absolute;
z-index: 2;
- background-color: linen; //$light-gray;
+ // background-color: linen; //$light-gray;
- .editable-title {
- background-color: linen; //$light-gray;
- }
+ // .editable-title {
+ // background-color: linen; //$light-gray;
+ // }
}
}
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index cbaa763f5..d9136dbd4 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -813,7 +813,7 @@ export class MainView extends React.Component {
{this.dockingContent}
{this._hideUI ? null : (
- <div className="mainView-propertiesDragger" key="props" onPointerDown={this.onPropertiesPointerDown} style={{ right: this.propertiesWidth() - 1, background: 'linen' }}>
+ <div className="mainView-propertiesDragger" key="props" onPointerDown={this.onPropertiesPointerDown} style={{ right: this.propertiesWidth() - 1 }}>
<FontAwesomeIcon icon={this.propertiesWidth() < 10 ? 'chevron-left' : 'chevron-right'} color={this.colorScheme === ColorScheme.Dark ? Colors.WHITE : Colors.BLACK} size="sm" />
</div>
)}