mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 15:00:51 -05:00
e959529828
[web] Explicitly name angular parameters GitOrigin-RevId: 91beae68989d6c8122132b531a4338b116d87424
18 lines
446 B
JavaScript
18 lines
446 B
JavaScript
import App from '../../../base'
|
|
App.controller('FileTreeController', [
|
|
'$scope',
|
|
function ($scope) {
|
|
$scope.openNewDocModal = () => {
|
|
window.dispatchEvent(
|
|
new CustomEvent('file-tree.start-creating', { detail: { mode: 'doc' } })
|
|
)
|
|
}
|
|
|
|
$scope.orderByFoldersFirst = function (entity) {
|
|
if ((entity != null ? entity.type : undefined) === 'folder') {
|
|
return '0'
|
|
}
|
|
return '1'
|
|
}
|
|
},
|
|
])
|