aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-04-27 23:39:16 -0400
committerbobzel <zzzman@gmail.com>2022-04-27 23:39:16 -0400
commitc6f2dc7f63b76ba0684e24aff8da138e00ae38ec (patch)
tree240055eaade48bfa75fc91c97ac790baa1d22e46 /src
parent2192b6cd994e71812d335a9902ef4e4ae296314b (diff)
unhide documents when viewing them from properties context/backlinks
Diffstat (limited to 'src')
-rw-r--r--src/client/views/PropertiesDocBacklinksSelector.tsx1
-rw-r--r--src/client/views/PropertiesDocContextSelector.tsx1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/PropertiesDocBacklinksSelector.tsx b/src/client/views/PropertiesDocBacklinksSelector.tsx
index 082492671..dce3e35e8 100644
--- a/src/client/views/PropertiesDocBacklinksSelector.tsx
+++ b/src/client/views/PropertiesDocBacklinksSelector.tsx
@@ -38,6 +38,7 @@ export class PropertiesDocBacklinksSelector extends React.Component<PropertiesDo
const otherdoc = !other ? undefined : other.annotationOn && other.type !== DocumentType.RTF ? Cast(other.annotationOn, Doc, null) : other;
if (otherdoc) {
+ otherdoc.hidden = false;
this.props.addDocTab(Doc.IsPrototype(otherdoc) ? Doc.MakeDelegate(otherdoc) : otherdoc, "toggle:right");
}
}
diff --git a/src/client/views/PropertiesDocContextSelector.tsx b/src/client/views/PropertiesDocContextSelector.tsx
index 015e0c8ee..1af706bb5 100644
--- a/src/client/views/PropertiesDocContextSelector.tsx
+++ b/src/client/views/PropertiesDocContextSelector.tsx
@@ -39,6 +39,7 @@ export class PropertiesDocContextSelector extends React.Component<PropertiesDocC
col._panX = NumCast(target.x) + NumCast(target._width) / 2;
col._panY = NumCast(target.y) + NumCast(target._height) / 2;
}
+ col.hidden = false;
this.props.addDocTab(col, "toggle:right");
setTimeout(() => DocFocusOrOpen(Doc.GetProto(this.props.DocView!.props.Document), col), 100);
}