HistoryV2FileTreeController.js 646 B

1234567891011121314151617181920212223
  1. /* eslint-disable
  2. max-len,
  3. no-return-assign,
  4. */
  5. // TODO: This file was created by bulk-decaffeinate.
  6. // Fix any style issues and re-enable lint.
  7. /*
  8. * decaffeinate suggestions:
  9. * DS102: Remove unnecessary code created because of implicit returns
  10. * DS207: Consider shorter variations of null checks
  11. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  12. */
  13. import App from '../../../base'
  14. export default App.controller('HistoryV2FileTreeController', [
  15. '$scope',
  16. 'ide',
  17. function ($scope, ide) {
  18. $scope.handleFileSelection = file => {
  19. ide.historyManager.selectFile(file)
  20. }
  21. },
  22. ])