fetchFileVersions request update in VersionTab.vue
This commit is contained in:
parent
6368672eec
commit
0f8a12352d
|
@ -44,7 +44,7 @@ export default async function(client) {
|
|||
// TODO: replace with proper getFUllpath implementation of our own FileInfo model
|
||||
const path = (this.fileInfo.path + '/' + this.fileInfo.name).replace('//', '/')
|
||||
// Fetch Version
|
||||
const fetchVersion = await axios.get(shareUrl, {
|
||||
const fetchFileVersions = await axios.get(shareUrl, {
|
||||
params: {
|
||||
format,
|
||||
path,
|
||||
|
|
|
@ -41,6 +41,7 @@ import { generateRemoteUrl } from '@nextcloud/router'
|
|||
import { ListItemIcon } from '@nextcloud/vue'
|
||||
import VersionEntry from '../components/VersionEntry'
|
||||
import FileVersion from "../services/FileVersion";
|
||||
import fetchFileVersions from "../services/FileVersion";
|
||||
|
||||
export default {
|
||||
name: 'VersionTab',
|
||||
|
@ -104,8 +105,8 @@ export default {
|
|||
async getVersions() {
|
||||
try {
|
||||
this.loading = true
|
||||
const fetchVersion = FileVersion(Client);
|
||||
fetchVersion();
|
||||
const fetchVersions = fetchFileVersions(this._fileInfo.get('id'));
|
||||
fetchVersions();
|
||||
}
|
||||
catch(e){
|
||||
console.log(error);
|
||||
|
|
Loading…
Reference in New Issue