aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-05-02 12:42:36 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-05-02 12:42:36 -0400
commitf706f70451525d4d0716c631cece9d78d76b3bfd (patch)
tree4b67df1abd6c5bcaf403144539b3c84034201fdd /src
parent70ccd8f3da9b97a0812514247385cc9eb3ce49d0 (diff)
removed console.logs
Diffstat (limited to 'src')
-rw-r--r--src/client/util/CaptureManager.tsx1
-rw-r--r--src/client/views/DocumentDecorations.tsx1
-rw-r--r--src/client/views/MainView.tsx1
-rw-r--r--src/client/views/collections/collectionFreeForm/MarqueeView.tsx2
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx4
-rw-r--r--src/client/views/nodes/DocumentView.tsx1
6 files changed, 2 insertions, 8 deletions
diff --git a/src/client/util/CaptureManager.tsx b/src/client/util/CaptureManager.tsx
index 17eba55e7..2e13aff2f 100644
--- a/src/client/util/CaptureManager.tsx
+++ b/src/client/util/CaptureManager.tsx
@@ -82,7 +82,6 @@ export class CaptureManager extends React.Component<{}> {
<div
className="cancel"
onClick={() => {
- console.log("cancel") //!!!
const selected = SelectionManager.Views.slice();
SelectionManager.DeselectAll();
selected.map(dv => dv.props.removeDocument?.(dv.Document));
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 8f042e68c..2fb9f0fc1 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -301,7 +301,6 @@ export class DocumentDecorations extends ObservableReactComponent<DocumentDecora
onIconifyClick = (): void => {
SelectionManager.Views.forEach(dv => dv?.iconify());
- console.log("iconify") //!!!
SelectionManager.DeselectAll();
};
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index eb45350a8..677114e2d 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -573,7 +573,6 @@ export class MainView extends ObservableReactComponent<{}> {
if (!e.cancelBubble) {
const pathstr = (e as any)?.path?.map((p: any) => p.classList?.toString()).join();
if (pathstr?.includes('libraryFlyout')) {
- console.log("random") //!!!
SelectionManager.DeselectAll();
}
}
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
index 62f391201..b913e05ad 100644
--- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
+++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx
@@ -249,7 +249,6 @@ export class MarqueeView extends ObservableReactComponent<SubCollectionViewProps
if (this._visible) {
const mselect = this.marqueeSelect();
if (!e.shiftKey) {
- console.log("marquee pointerup") //!!!
SelectionManager.DeselectAll(mselect.length ? undefined : this._props.Document);
}
const docs = mselect.length ? mselect : [this._props.Document];
@@ -374,7 +373,6 @@ export class MarqueeView extends ObservableReactComponent<SubCollectionViewProps
@undoBatch
pileup = action((e: KeyboardEvent | React.PointerEvent | undefined) => {
- console.log("pileup")//!!!
const selected = this.marqueeSelect(false);
SelectionManager.DeselectAll();
selected.forEach(d => this._props.removeDocument?.(d));
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 13370ea6b..841222c96 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -371,7 +371,8 @@ export class CollectionSchemaView extends CollectionSubView() {
@undoBatch
moveColumn = (fromIndex: number, toIndex: number) => {
- if (toIndex === this._selectedCol) this._selectedCol = fromIndex; //keeps selected cell consistent
+ if (this._selectedCol === fromIndex) this._selectedCol = toIndex;
+ else if (toIndex === this._selectedCol) this._selectedCol = fromIndex; //keeps selected cell consistent
let currKeys = this.columnKeys.slice();
currKeys.splice(toIndex, 0, currKeys.splice(fromIndex, 1)[0]);
@@ -508,7 +509,6 @@ export class CollectionSchemaView extends CollectionSubView() {
@action
clearSelection = () => {
- //console.log("clear selection") //!!!
SelectionManager.DeselectAll();
this.deselectAllCells();
};
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 10a55b260..5f2a71ef5 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -333,7 +333,6 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document
if (this.onDoubleClickHandler?.script) {
UndoManager.RunInBatch(() => this.onDoubleClickHandler.script.run(scriptProps, console.log).result?.select && this._props.select(false), 'on double click: ' + this.Document.title);
} else if (!Doc.IsSystem(this.Document) && defaultDblclick !== 'ignore') {
- console.log("double click") //!!!
UndoManager.RunInBatch(() => LightboxView.Instance.AddDocTab(this.Document, OpenWhere.lightbox), 'double tap');
SelectionManager.DeselectAll();
Doc.UnBrushDoc(this.Document);