mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
share delete fix
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
"/chunks/plan-settings.js": "/chunks/plan-settings.js?id=dbc08f8cdc23900ef40a",
|
||||
"/chunks/plan-subscribers.js": "/chunks/plan-subscribers.js?id=8c4b655b9286e06894c5",
|
||||
"/chunks/plans.js": "/chunks/plans.js?id=2b26173a02ed9f86e875",
|
||||
"/chunks/platform.js": "/chunks/platform.js?id=b7b13093369e09fcb1cb",
|
||||
"/chunks/platform.js": "/chunks/platform.js?id=96e35689e3b71e7097eb",
|
||||
"/chunks/platform~chunks/shared.js": "/chunks/platform~chunks/shared.js?id=be3d7cf51585313cf53b",
|
||||
"/chunks/profile.js": "/chunks/profile.js?id=03526296e71df827ff47",
|
||||
"/chunks/profile~chunks/settings-password.js": "/chunks/profile~chunks/settings-password.js?id=fd25990d1ccec0294602",
|
||||
@@ -97,5 +97,6 @@
|
||||
"/chunks/sign-in.e4bd63dd478b0b7f9731.hot-update.js": "/chunks/sign-in.e4bd63dd478b0b7f9731.hot-update.js",
|
||||
"/chunks/sign-in.5fb05f1c4d2f285ebf61.hot-update.js": "/chunks/sign-in.5fb05f1c4d2f285ebf61.hot-update.js",
|
||||
"/chunks/sign-in.64892e5fdc888eba9b23.hot-update.js": "/chunks/sign-in.64892e5fdc888eba9b23.hot-update.js",
|
||||
"/chunks/sign-in.62aa097b63d9b34e26cd.hot-update.js": "/chunks/sign-in.62aa097b63d9b34e26cd.hot-update.js"
|
||||
"/chunks/sign-in.62aa097b63d9b34e26cd.hot-update.js": "/chunks/sign-in.62aa097b63d9b34e26cd.hot-update.js",
|
||||
"/chunks/platform.cc7392304bf1bf06dc6c.hot-update.js": "/chunks/platform.cc7392304bf1bf06dc6c.hot-update.js"
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
|
||||
// Send delete request
|
||||
await this.$store.dispatch('shareCancel' , this.pickedItem)
|
||||
.then((response) => {
|
||||
.then(() => {
|
||||
|
||||
// End deleting spinner button
|
||||
setTimeout(() => this.isDeleting = false, 150)
|
||||
|
||||
@@ -76,10 +76,9 @@ class ShareController extends Controller
|
||||
/**
|
||||
* Delete sharing item
|
||||
*/
|
||||
public function destroy(
|
||||
Request $request,
|
||||
): Response {
|
||||
foreach ($request->input('tokens') as $token) {
|
||||
public function destroy(): Response
|
||||
{
|
||||
foreach (request()->input('tokens') as $token) {
|
||||
// Delete share record
|
||||
Share::where('token', $token)
|
||||
->where('user_id', Auth::id())
|
||||
|
||||
@@ -222,7 +222,7 @@ class UserShareTest extends TestCase
|
||||
'id' => $folder->id,
|
||||
])->assertStatus(201);
|
||||
|
||||
$this->deleteJson('/api/share', [
|
||||
$this->deleteJson('/api/share/revoke', [
|
||||
'tokens' => [
|
||||
$folder->shared->token,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user