Skip to content

Commit 6c0a226

Browse files
authored
fix: send skip trash checkbox value (#98)
1 parent 37fb35b commit 6c0a226

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"filesize": "^11.0.13",
2828
"js-base64": "^3.7.7",
2929
"jwt-decode": "^4.0.0",
30-
"lodash-es": "^4.17.21",
30+
"lodash-es": "^4.17.23",
3131
"marked": "^17.0.0",
3232
"material-icons": "^1.13.14",
3333
"normalize.css": "^8.0.1",

frontend/pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/api/files.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ async function resourceAction(url: string, method: ApiMethod, content?: any) {
5454
return res;
5555
}
5656

57-
export async function remove(url: string, skipTrash = true) {
58-
return resourceAction(`${url}?skip_trash=${skipTrash}`, "DELETE");
57+
export async function remove(url: string, skipTrash: boolean = true) {
58+
return resourceAction(`${url}?skip_trash=${skipTrash.toString()}`, "DELETE");
5959
}
6060

6161
export async function put(url: string, content = "") {

frontend/src/components/prompts/Delete.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default {
108108
109109
const promises = [];
110110
for (const index of this.selected) {
111-
promises.push(api.remove(this.req.items[index].url));
111+
promises.push(api.remove(this.req.items[index].url, this.skipTrash));
112112
}
113113
114114
await Promise.all(promises);

0 commit comments

Comments
 (0)