aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-11-21 14:50:25 -0500
committerbobzel <zzzman@gmail.com>2022-11-21 14:50:25 -0500
commit1f5db9cfc594dbf337d752ec94dab5fca7d8b6f7 (patch)
tree1427d85c987550b60a5a5068b46e07070cc283b9 /src/client/util/SelectionManager.ts
parentcdd1dd95c67fcb95914913bb5346c5117c0abc27 (diff)
working cleaned up version of link editor properties in propertiesView
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 1a2dda953..02d672a65 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -16,7 +16,6 @@ export namespace SelectionManager {
@action
SelectSchemaViewDoc(doc: Opt<Doc>) {
manager.SelectedSchemaDocument = doc;
- if (doc?.type === DocumentType.LINK) LinkManager.currentLink = doc;
}
@action
SelectView(docView: DocumentView, ctrlPressed: boolean): void {
@@ -34,7 +33,6 @@ export namespace SelectionManager {
manager.SelectedViews.clear();
manager.SelectedViews.set(docView, docView.rootDoc);
}
- if (docView.rootDoc.type === DocumentType.LINK) LinkManager.currentLink = docView.rootDoc;
}
@action
DeselectView(docView: DocumentView): void {
@@ -45,7 +43,6 @@ export namespace SelectionManager {
}
@action
DeselectAll(): void {
- LinkManager.currentLink = undefined;
manager.SelectedSchemaDocument = undefined;
Array.from(manager.SelectedViews.keys()).forEach(dv => dv.props.whenChildContentsActiveChanged(false));
manager.SelectedViews.clear();