aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionDockingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-05 19:43:42 -0500
committerbobzel <zzzman@gmail.com>2025-03-05 19:43:42 -0500
commit1256ea80f4f1feedf9344020d1bb5fbbaf8e21a4 (patch)
tree49f3848d9ecc8027acfaadeef1b93433f572391e /src/client/views/collections/CollectionDockingView.tsx
parent204132aba65d1c25ba6c256b3777c63e51c536f3 (diff)
fixing compile/runtime errors.
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index 04e3b2663..e51bc18ef 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -65,7 +65,6 @@ export class CollectionDockingView extends CollectionSubView() {
constructor(props: SubCollectionViewProps) {
super(props);
makeObservable(this);
- console.log('CREATING DOCKING VIEW');
if (this._props.renderDepth < 0) CollectionDockingView.Instance = this;
// Why is this here?
(window as unknown as { React: unknown }).React = React;
@@ -282,7 +281,6 @@ export class CollectionDockingView extends CollectionSubView() {
}
setupGoldenLayout = async () => {
if (this._unmounting) return;
- console.log('SETUP LAYOUT');
// const config = StrCast(this.Document.dockingConfig, JSON.stringify(DashboardView.resetDashboard(this.Document)));
const config = StrCast(this.Document.dockingConfig);
if (config) {
@@ -340,7 +338,6 @@ export class CollectionDockingView extends CollectionSubView() {
componentDidMount: () => void = async () => {
this._props.setContentViewBox?.(this);
this._unmounting = false;
- console.log('MOUNTING');
SetPropSetterCb('title', this.titleChanged); // this overrides any previously assigned callback for the property
if (this._containerRef.current) {
this._disposers.lightbox = reaction(
@@ -352,7 +349,6 @@ export class CollectionDockingView extends CollectionSubView() {
() => StrCast(this.Document.dockingConfig),
config => {
if (!this._goldenLayout || this._ignoreStateChange !== config) {
- console.log('CONFIG CHANGED');
// bcz: TODO! really need to diff config with ignoreStateChange and modify the current goldenLayout instead of building a new one.
this.setupGoldenLayout();
}
@@ -363,7 +359,6 @@ export class CollectionDockingView extends CollectionSubView() {
() => this._props.PanelWidth(),
width => {
if (!this._goldenLayout && width > 20) {
- console.log('PWIDTH = ' + width);
setTimeout(() => this.setupGoldenLayout());
}
}, // need to wait for the collectiondockingview-container to have it's width/height since golden layout reads that to configure its windows
@@ -383,7 +378,6 @@ export class CollectionDockingView extends CollectionSubView() {
};
componentWillUnmount: () => void = () => {
- console.log('UNMOUNTING');
this._unmounting = true;
Object.values(this._disposers).forEach(d => d());
try {
@@ -419,7 +413,6 @@ export class CollectionDockingView extends CollectionSubView() {
.map(f => f as Doc);
const changesMade = this.Document.dockingConfig !== json;
if (changesMade) {
- console.log('WRITING CONFIG');
if (![AclAdmin, AclEdit].includes(GetEffectiveAcl(this.dataDoc))) {
this.layoutDoc.dockingConfig = json;
this.layoutDoc.data = new List<Doc>(docs);