mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 20:24:51 -05:00
6ab9fffb49
GitOrigin-RevId: feeae54575cce8b315b4e6bb0df3e17405025855
15 lines
403 B
JavaScript
15 lines
403 B
JavaScript
import App from '../../../base'
|
|
App.controller('FileTreeController', 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'
|
|
}
|
|
})
|