diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-21 00:55:34 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-21 00:55:34 -0400 |
commit | efcacfa867ac7ac39d97ed2fe33c1311b912ca0f (patch) | |
tree | 1e1bf4c5621c9a590370a8d6d883192cc883e257 | |
parent | c37dd6ab26b2cb00fb6c11da21b69200d870435a (diff) |
the decommenting
3 files changed, 1 insertions, 14 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index d583ffd03..b2942cc47 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -423,11 +423,8 @@ export class CollectionSchemaView extends CollectionSubView() { @action addDocToSelection = (doc: Doc, extendSelection: boolean, index: number) => { - //console.log("doc added"); const rowDocView = DocumentManager.Instance.getDocumentView(doc); if (rowDocView) SelectionManager.SelectView(rowDocView, extendSelection); - //let selectedIndexes: Array<Number> = this._selectedDocs.map(doc => this.rowIndex(doc)); - //console.log(selectedIndexes); }; @action @@ -442,8 +439,6 @@ export class CollectionSchemaView extends CollectionSubView() { const lastSelectedRow = this.rowIndex(lastSelected); const startRow = Math.min(lastSelectedRow, index); const endRow = Math.max(lastSelectedRow, index); - //console.log(lastSelectedRow); - //console.log("start: " + startRow + " end: " + endRow); for (let i = startRow; i <= endRow; i++) { const currDoc = this.sortedDocs.docs[i]; if (!this._selectedDocs.includes(currDoc)) this.addDocToSelection(currDoc, true, i); @@ -466,8 +461,6 @@ export class CollectionSchemaView extends CollectionSubView() { } let selectedIndexes: Array<Number> = this._selectedCells.map(doc => this.rowIndex(doc)); - console.log("cells: " + selectedIndexes); - console.log("index: " + this._selectedCol); }; @@ -477,7 +470,6 @@ export class CollectionSchemaView extends CollectionSubView() { this._selectedCells = this._selectedCells.filter(d => d !== doc); if (this._selectedCells){ let selectedIndexes: Array<Number> = this._selectedCells.map(doc => this.rowIndex(doc)); - console.log("cells: " + selectedIndexes); } }; @@ -609,7 +601,6 @@ export class CollectionSchemaView extends CollectionSubView() { setColumnValues = (key: string, value: string) => { this.childDocs.forEach(doc => { let docIsSelected = this._selectedCells && !(this._selectedCells?.filter(d => d === doc).length === 0); - console.log(docIsSelected); if (docIsSelected){ KeyValueBox.SetField(doc, key, value) } @@ -620,7 +611,6 @@ export class CollectionSchemaView extends CollectionSubView() { }; setSelectedColumnValues = (key: string, value: string) => { - console.log("called"); this.childDocs.forEach(doc => { let docIsSelected = this._selectedCells && !(this._selectedCells?.filter(d => d === doc).length === 0); if (docIsSelected){ diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx index 52c34e8d6..1c4520ae2 100644 --- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx +++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx @@ -111,7 +111,6 @@ export class SchemaTableCell extends ObservableReactComponent<SchemaTableCellPro @computed get selected() { const selected: Doc[] | undefined = this._props.selectedCells(); let istrue = this._props.isRowActive() && (selected && selected?.filter(doc => doc === this._props.Document).length !== 0) && this._props.selectedCol() === this._props.col; - console.log("col: " + this._props.col + " selCol: " + this._props.selectedCol() + " true: " + istrue); return istrue; } @@ -184,8 +183,6 @@ export class SchemaTableCell extends ObservableReactComponent<SchemaTableCellPro <div className="schema-table-cell" onPointerDown={action(e => { - console.log(e); - console.log(e.shiftKey); const shift: boolean = e.shiftKey; !this.selected && this._props.selectCell(this._props.Document, this._props.col, shift)} )} diff --git a/src/client/views/nodes/formattedText/DashFieldView.tsx b/src/client/views/nodes/formattedText/DashFieldView.tsx index 66db06d69..f6e2bfa66 100644 --- a/src/client/views/nodes/formattedText/DashFieldView.tsx +++ b/src/client/views/nodes/formattedText/DashFieldView.tsx @@ -141,7 +141,7 @@ export class DashFieldViewInternal extends ObservableReactComponent<IDashFieldVi maxWidth={this._props.hideKey ? undefined : this.return100} columnWidth={this._props.hideKey ? () => this._props.tbox._props.PanelWidth() - 20 : returnZero} selectedCells={() => [this._dashDoc!]} - selectedCol={() => 0} //!!! + selectedCol={() => 0} fieldKey={this._fieldKey} rowHeight={returnZero} isRowActive={() => this._expanded && this._props.editable} |