Skip to content

Commit

Permalink
Merge branch 'filebrowser:master' into feature/upload-progress-indica…
Browse files Browse the repository at this point in the history
…tors-take-two
  • Loading branch information
alexjyong committed Apr 25, 2024
2 parents 65f996d + 434e49b commit 9102678
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/prompts/UploadFiles.vue
Expand Up @@ -80,7 +80,6 @@ export default {
"getTotalSize"

Check warning on line 80 in frontend/src/components/prompts/UploadFiles.vue

View workflow job for this annotation

GitHub Actions / lint-frontend

Insert `,`
]),
...mapWritableState(useFileStore, ["reload"]),
...mapActions(useUploadStore, ["reset"]),
formattedETA() {
if (!this.getETA || this.getETA === Infinity) {
return "--:--:--";
Expand All @@ -98,6 +97,7 @@ export default {
},
},
methods: {
...mapActions(useUploadStore, ["reset"]), // Mapping reset action from upload store

Check warning on line 100 in frontend/src/components/prompts/UploadFiles.vue

View workflow job for this annotation

GitHub Actions / lint-frontend

Delete `·`
toggle: function () {
this.open = !this.open;
},
Expand All @@ -106,8 +106,8 @@ export default {
abortAllUploads();
buttons.done("upload");
this.open = false;
this.reset();
this.reload = true;
this.reset(); // Resetting the upload store state

Check warning on line 109 in frontend/src/components/prompts/UploadFiles.vue

View workflow job for this annotation

GitHub Actions / lint-frontend

Delete `·`
this.reload = true; // Trigger reload in the file store

Check warning on line 110 in frontend/src/components/prompts/UploadFiles.vue

View workflow job for this annotation

GitHub Actions / lint-frontend

Delete `·`
}
},
},
Expand Down
1 change: 1 addition & 0 deletions http/http.go
Expand Up @@ -69,6 +69,7 @@ func NewHandler(
api.PathPrefix("/tus").Handler(monkey(tusPostHandler(), "/api/tus")).Methods("POST")
api.PathPrefix("/tus").Handler(monkey(tusHeadHandler(), "/api/tus")).Methods("HEAD", "GET")
api.PathPrefix("/tus").Handler(monkey(tusPatchHandler(), "/api/tus")).Methods("PATCH")
api.PathPrefix("/tus").Handler(monkey(resourceDeleteHandler(fileCache), "/api/tus")).Methods("DELETE")

api.PathPrefix("/usage").Handler(monkey(diskUsage, "/api/usage")).Methods("GET")

Expand Down
2 changes: 1 addition & 1 deletion http/resource.go
Expand Up @@ -87,7 +87,7 @@ func resourceDeleteHandler(fileCache FileCache) handleFunc {
return errToStatus(err), err
}

return http.StatusOK, nil
return http.StatusNoContent, nil
})
}

Expand Down

0 comments on commit 9102678

Please sign in to comment.