aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-12 02:50:19 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-12 02:50:19 -0400
commit571220cb349644efc149b8e13d000a37366db664 (patch)
treefe03f374c65994fcdf8f83020c6dade9dcf8aad9 /src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
parentc0afdafa109c377a83ebe4394d63b9fe785fe475 (diff)
fixed col drag highlight and cleaned up multi-select highlight
Diffstat (limited to 'src/client/views/collections/collectionSchema/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 033bc74d2..25a1b4819 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -325,17 +325,6 @@ export class CollectionSchemaView extends CollectionSubView() {
});
}
- // parses a field from the "idToDoc(####)" format to DocumentId (d#) format for readability
- cleanupComputedField = (field: string) => {
- const idPattern = /idToDoc\((.*?)\)/g;
- let modField = field.slice();
- let matches;
- let results = new Map<string, string>();
- while ((matches = idPattern.exec(field)) !== null) {results.set(matches[0], matches[1].replace(/"/g, '')); }
- results.forEach((id, funcId) => {modField = modField.replace(funcId, 'd' + (DocumentView.getDocViewIndex(IdToDoc(id))).toString());})
- return modField;
- }
-
@undoBatch
removeColumn = (index: number) => {
if (this.columnKeys.length === 1) return;
@@ -480,7 +469,7 @@ export class CollectionSchemaView extends CollectionSubView() {
const edgeStyle = i === index ? `solid 2px ${Colors.MEDIUM_BLUE}` : '';
const cellEles = [
colRef,
- ...this.childDocs
+ ...this.docs
.filter(doc => i !== this._selectedCol || !this._selectedDocs.includes(doc))
.map(doc => this._rowEles.get(doc).children[1].children[i]),
];
@@ -534,7 +523,6 @@ export class CollectionSchemaView extends CollectionSubView() {
if (!shiftKey && !ctrlKey) this.clearSelection();
!this._selectedCells && (this._selectedCells = []);
!shiftKey && this._selectedCells.push(doc);
- this._selectedCells.forEach(d => console.log(d.title))
const index = this.rowIndex(doc);
if (!this) return;