From 0e7c27d91aa62657fcf36a13fbde7e26cd6f45c3 Mon Sep 17 00:00:00 2001 From: Alf Eaton <75253002+aeaton-overleaf@users.noreply.github.com> Date: Wed, 12 May 2021 11:28:13 +0100 Subject: [PATCH] Merge pull request #4013 from overleaf/ae-share-modal-header Restore the React share modal GitOrigin-RevId: 697524bceaf0f711889028ad313914edf29e246a --- .../web/app/views/project/editor/header-react.pug | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/project/editor/header-react.pug b/services/web/app/views/project/editor/header-react.pug index 480934432a..868e119c64 100644 --- a/services/web/app/views/project/editor/header-react.pug +++ b/services/web/app/views/project/editor/header-react.pug @@ -1,7 +1,14 @@ -div(ng-controller="ShareController") +div(ng-controller=showReactShareModal ? 'ReactShareProjectModalController': 'ShareController') + if showReactShareModal + share-project-modal( + handle-hide="handleHide" + show="show" + is-admin="isAdmin" + ) + div(ng-controller="EditorNavigationToolbarController") editor-navigation-toolbar-root( open-doc="openDoc" online-users-array="onlineUsersArray" open-share-project-modal="openShareProjectModal" - ) \ No newline at end of file + )