Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4140 from overleaf/ae-react-share-modal
Browse files Browse the repository at this point in the history
Remove Angular share modal code

GitOrigin-RevId: 136b10c7b9768f2d8de13e48b16fd71947506624
  • Loading branch information
aeaton-overleaf authored and Copybot committed Jun 8, 2021
1 parent 5cbca58 commit 3603d29
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 1,997 deletions.
4 changes: 0 additions & 4 deletions app/src/Features/Project/ProjectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,10 +887,6 @@ const ProjectController = {
'new_navigation_ui',
user.alphaProgram
),
showReactShareModal: shouldDisplayFeature(
'new_share_modal_ui',
true
),
showReactDropboxModal: shouldDisplayFeature(
'new_dropbox_modal_ui',
user.betaProgram
Expand Down
1 change: 0 additions & 1 deletion app/views/project/editor.pug
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ block content
else
include ./editor/header

include ./editor/share
!= moduleIncludes("publish:body", locals)

include ./editor/history/toolbarV2.pug
Expand Down
13 changes: 6 additions & 7 deletions app/views/project/editor/header-react.pug
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
div(ng-controller=showReactShareModal ? 'ReactShareProjectModalController': 'ShareController')
if showReactShareModal
share-project-modal(
handle-hide="handleHide"
show="show"
is-admin="isAdmin"
)
div(ng-controller="ReactShareProjectModalController")
share-project-modal(
handle-hide="handleHide"
show="show"
is-admin="isAdmin"
)

div(ng-controller="EditorNavigationToolbarController")
editor-navigation-toolbar-root(
Expand Down
13 changes: 6 additions & 7 deletions app/views/project/editor/header.pug
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,16 @@ header.toolbar.toolbar-header.toolbar-with-labels(
a.btn.btn-full-height(
href
ng-click="openShareProjectModal(permissions.admin);"
ng-controller=(showReactShareModal ? 'ReactShareProjectModalController': 'ShareController')
ng-controller="ReactShareProjectModalController"
)
i.fa.fa-fw.fa-group
p.toolbar-label #{translate("share")}

if showReactShareModal
share-project-modal(
handle-hide="handleHide"
show="show"
is-admin="isAdmin"
)
share-project-modal(
handle-hide="handleHide"
show="show"
is-admin="isAdmin"
)
!= moduleIncludes('publish:button', locals)

if !isRestrictedTokenMember
Expand Down
287 changes: 0 additions & 287 deletions app/views/project/editor/share.pug

This file was deleted.

1 change: 0 additions & 1 deletion frontend/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const App = angular
'ErrorCatcher',
'localStorage',
'sessionStorage',
'ngTagsInput',
'ui.select',
])
.config(function ($qProvider, $httpProvider, uiSelectConfig) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import SafariScrollPatcher from './ide/SafariScrollPatcher'
import { loadServiceWorker } from './ide/pdfng/directives/serviceWorkerManager'
import './ide/cobranding/CobrandingDataService'
import './ide/settings/index'
import './ide/share/index'
import './ide/binary-files/index'
import './ide/chat/index'
import './ide/clone/index'
Expand Down Expand Up @@ -64,6 +63,7 @@ import './main/system-messages'
import '../../modules/modules-ide.js'
import './shared/context/controllers/root-context-controller'
import './features/editor-navigation-toolbar/controllers/editor-navigation-toolbar-controller'
import './features/share-project-modal/controllers/react-share-project-modal-controller'
import getMeta from './utils/meta'

App.controller(
Expand Down
Loading

0 comments on commit 3603d29

Please sign in to comment.