diff options
Diffstat (limited to 'apps/files/src/views/files.ts')
-rw-r--r-- | apps/files/src/views/files.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/files/src/views/files.ts b/apps/files/src/views/files.ts index baafc8572c2..a535481a061 100644 --- a/apps/files/src/views/files.ts +++ b/apps/files/src/views/files.ts @@ -19,16 +19,15 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ -import type { NavigationService, Navigation } from '../services/Navigation' - import { translate as t } from '@nextcloud/l10n' import FolderSvg from '@mdi/svg/svg/folder.svg?raw' import { getContents } from '../services/Files' +import { View, getNavigation } from '@nextcloud/files' export default () => { - const Navigation = window.OCP.Files.Navigation as NavigationService - Navigation.register({ + const Navigation = getNavigation() + Navigation.register(new View({ id: 'files', name: t('files', 'All files'), caption: t('files', 'List of your files and folders.'), @@ -37,5 +36,5 @@ export default () => { order: 0, getContents, - } as Navigation) + })) } |