tui: add reject message support to permission dialogs for better user feedback
This commit is contained in:
parent
2b66b31d96
commit
47c670aea9
1 changed files with 196 additions and 79 deletions
|
|
@ -1631,13 +1631,14 @@ export namespace Server {
|
|||
requestID: z.string(),
|
||||
}),
|
||||
),
|
||||
validator("json", z.object({ reply: PermissionNext.Reply })),
|
||||
validator("json", z.object({ reply: PermissionNext.Reply, message: z.string().optional() })),
|
||||
async (c) => {
|
||||
const params = c.req.valid("param")
|
||||
const json = c.req.valid("json")
|
||||
await PermissionNext.reply({
|
||||
requestID: params.requestID,
|
||||
reply: json.reply,
|
||||
message: json.message,
|
||||
})
|
||||
return c.json(true)
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue