Skip to content

Commit 4eb47fa

Browse files
committed
prompt rm: refresh page
Fixes #161
1 parent b1b2e0e commit 4eb47fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

caterva2/services/sub.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,9 @@ async def call(cls, request, user, argv, operands, hx_current_url):
20092009
path = operands.get(argv[1], argv[1])
20102010
path = pathlib.Path(path)
20112011
await remove(path, user)
2012-
# Nothing to show after removing
2012+
response = responses.Response(status_code=204)
2013+
response.headers["HX-Refresh"] = "true"
2014+
return response
20132015

20142016

20152017
class AddNotebookCmd:

0 commit comments

Comments
 (0)