mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 22:59:01 +02:00
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:
committed by
Copybot
parent
1186c3e9a4
commit
4e9d7c36ff
@@ -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'])
|
||||
)
|
||||
Reference in New Issue
Block a user