mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
* Created ng-controller for react shared context and set editor.loading * toolbar-header component with menu button (and story) * Added editor-navigation-toolbar-root and react2angular plumbing * Added eslint-disable exception to use <a/> instead of <button/> * added 'menu' to extracted translation * [ReactNavToolbar] Added cobranding and back to projects buttons (#3515) GitOrigin-RevId: 27c3bba85cbc96a123d58c66a0bd5d6a2cfd8aca
16 lines
451 B
JavaScript
16 lines
451 B
JavaScript
import App from '../../../base'
|
|
import { react2angular } from 'react2angular'
|
|
import { rootContext } from '../root-context'
|
|
|
|
App.controller('ReactRootContextController', function($scope, ide) {
|
|
$scope.editorLoading = !!ide.$scope.state.loading
|
|
ide.$scope.$watch('state.loading', editorLoading => {
|
|
$scope.editorLoading = editorLoading
|
|
})
|
|
})
|
|
|
|
App.component(
|
|
'sharedContextReact',
|
|
react2angular(rootContext.component, ['editorLoading'])
|
|
)
|