From 91c2c600e43a9110dcb087717ec14ac41054d533 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 9 Feb 2024 22:43:46 -0800 Subject: [PATCH] Fix zoom propagation. --- packages/editor/test/playground/map-render/js/MapInfoImpl.ts | 4 ++++ packages/webapp/src/components/editor-page/index.tsx | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/editor/test/playground/map-render/js/MapInfoImpl.ts b/packages/editor/test/playground/map-render/js/MapInfoImpl.ts index a3a1bdc3..78d7a5c1 100644 --- a/packages/editor/test/playground/map-render/js/MapInfoImpl.ts +++ b/packages/editor/test/playground/map-render/js/MapInfoImpl.ts @@ -45,6 +45,10 @@ class MapInfoImpl implements MapInfo { return this.title; } + getLockedMsg(): string | undefined { + return this.lockedMsg; + } + setTitle(value: string): void { throw (this.title = value); } diff --git a/packages/webapp/src/components/editor-page/index.tsx b/packages/webapp/src/components/editor-page/index.tsx index a349de03..171a3424 100644 --- a/packages/webapp/src/components/editor-page/index.tsx +++ b/packages/webapp/src/components/editor-page/index.tsx @@ -204,6 +204,7 @@ const EditorPage = ({ mapId, isTryMode }: EditorPropsType): React.ReactElement = locale: userLocale.code, mode: mapMetadata.mode, enableAppBar: true, + zoom: mapMetadata.zoom, }; persistence = buildPersistenceManagerForEditor(mapMetadata.mode); @@ -212,7 +213,7 @@ const EditorPage = ({ mapId, isTryMode }: EditorPropsType): React.ReactElement = client, mapMetadata.title, mapMetadata.isLocked, - '', + mapMetadata.isLockedBy, mapMetadata.zoom, ); }