feat: add "Files Navigation" experimental feature to Labs (#1125)

This commit is contained in:
Aman Harwara
2022-06-21 02:05:10 +05:30
committed by GitHub
parent 89b77660f5
commit b6cd4bf6bf
5 changed files with 80 additions and 15 deletions

View File

@@ -26,6 +26,7 @@ import { makeObservable, observable } from 'mobx'
import { PanelResizedData } from '@/Types/PanelResizedData'
import { WebAppEvent } from './WebAppEvent'
import { isDesktopApplication } from '@/Utils'
import { storage, StorageKey } from '@/Services/LocalStorage'
type WebServices = {
viewControllerManager: ViewControllerManager
@@ -62,7 +63,7 @@ export class WebApplication extends SNApplication {
defaultHost: defaultSyncServerHost,
appVersion: deviceInterface.appVersion,
webSocketUrl: webSocketUrl,
supportsFileNavigation: window.enabledUnfinishedFeatures || false,
supportsFileNavigation: storage.get(StorageKey.FilesNavigationEnabled) || false,
})
makeObservable(this, {