controller refactoring part 2

This commit is contained in:
Peter Papp
2021-07-20 09:50:23 +02:00
parent d6db2f3a7c
commit 20a6404d8d
19 changed files with 256 additions and 252 deletions

View File

@@ -196,9 +196,7 @@ export default {
// Send request to get share link
axios
.post(`/api/share/${this.shareOptions.id}`,
this.shareOptions
)
.post(`/api/share`, this.shareOptions)
.then(response => {
// Show infobox and reset emails container

View File

@@ -284,7 +284,7 @@
// Send request to get share link
axios
.post('/api/share/' + this.shareOptions.token, {
.post('/api/share/' + this.shareOptions.id, {
permission: this.shareOptions.permission,
protected: this.shareOptions.isProtected,
expiration: this.shareOptions.expiration,
@@ -324,6 +324,7 @@
// Store shared options
this.shareOptions = {
id: args.item.shared.id,
token: args.item.shared.token,
expiration: args.item.shared.expire_in,
isProtected: args.item.shared.is_protected,