fetchFileVersions request update in VersionTab.vue

This commit is contained in:
Terry 2021-04-23 14:22:56 +02:00
parent 6368672eec
commit 0f8a12352d
2 changed files with 4 additions and 3 deletions

View File

@ -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,

View File

@ -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);