Merge pull request #3952 from overleaf/revert-cmg-binary-file

Revert "Merge pull request #3526 from overleaf/cmg-binary-file"

GitOrigin-RevId: 5f539f26992fefd01b07922b1f43a3a3bc753141
This commit is contained in:
Chrystal Maria Griffiths
2021-04-23 16:49:19 +02:00
committed by Copybot
parent 1186c3e9a4
commit 4e9d7c36ff
21 changed files with 9 additions and 1053 deletions
@@ -1,21 +0,0 @@
import App from '../../../base'
import { react2angular } from 'react2angular'
import BinaryFile from '../components/binary-file'
import _ from 'lodash'
export default App.controller(
'ReactBinaryFileController',
function ($scope, $rootScope) {
$scope.file = $scope.openFile
$scope.storeReferencesKeys = newKeys => {
const oldKeys = $rootScope._references.keys
return ($rootScope._references.keys = _.union(oldKeys, newKeys))
}
}
)
App.component(
'binaryFile',
react2angular(BinaryFile, ['storeReferencesKeys', 'file'])
)