Use @nextcloud/paths for file sidebar
Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
parent
8899162463
commit
abb45e2f72
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
|
@ -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)}`)
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue