mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-10 13:24:22 +00:00
26 lines
600 B
JavaScript
26 lines
600 B
JavaScript
|
import App from '../../../base'
|
||
|
import { react2angular } from 'react2angular'
|
||
|
|
||
|
import HotkeysModal from '../components/hotkeys-modal'
|
||
|
|
||
|
App.component('hotkeysModal', react2angular(HotkeysModal))
|
||
|
|
||
|
export default App.controller('HotkeysModalController', function($scope) {
|
||
|
$scope.show = false
|
||
|
|
||
|
$scope.handleHide = () => {
|
||
|
$scope.$applyAsync(() => {
|
||
|
$scope.show = false
|
||
|
})
|
||
|
}
|
||
|
|
||
|
$scope.openHotkeysModal = () => {
|
||
|
$scope.trackChangesVisible =
|
||
|
$scope.project && $scope.project.features.trackChangesVisible
|
||
|
|
||
|
$scope.$applyAsync(() => {
|
||
|
$scope.show = true
|
||
|
})
|
||
|
}
|
||
|
})
|