Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/files_versions/src/services/FileVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed as the request would need to be issued by the below call to the webdav client in order to get the list of versions with the following propfind request for example:

image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes removed and Updated

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params: {
format,
path,
Expand Down
5 changes: 3 additions & 2 deletions apps/files_versions/src/views/VersionTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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);
Expand Down