mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
controller refactoring part 2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user