Use @nextcloud/paths for file sidebar

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim 2020-01-08 21:30:44 +08:00
parent 8899162463
commit abb45e2f72
No known key found for this signature in database
GPG Key ID: 9349B59FB54594AC
5 changed files with 22 additions and 21 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -63,6 +63,7 @@ import AppSidebar from 'nextcloud-vue/dist/Components/AppSidebar'
import FileInfo from '../services/FileInfo' import FileInfo from '../services/FileInfo'
import LegacyTab from '../components/LegacyTab' import LegacyTab from '../components/LegacyTab'
import LegacyView from '../components/LegacyView' import LegacyView from '../components/LegacyView'
import { encodePath } from '@nextcloud/paths'
export default { export default {
name: 'Sidebar', name: 'Sidebar',
@ -115,7 +116,7 @@ export default {
*/ */
davPath() { davPath() {
const user = OC.getCurrentUser().uid const user = OC.getCurrentUser().uid
return OC.linkToRemote(`dav/files/${user}${encodeURIComponent(this.file)}`) return OC.linkToRemote(`dav/files/${user}${encodePath(this.file)}`)
}, },
/** /**