From 9e459daee2fd1333f81b9e4be7091ee68119d9ac Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Mon, 17 May 2021 14:44:57 -0500 Subject: [PATCH] Helptickets: Support a disclaimer message on submit --- server/chat-plugins/helptickets.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/chat-plugins/helptickets.ts b/server/chat-plugins/helptickets.ts index 0e1f1aff55..fd8dc5d9f7 100644 --- a/server/chat-plugins/helptickets.ts +++ b/server/chat-plugins/helptickets.ts @@ -35,6 +35,7 @@ interface TextTicketInfo { input: string, context: string, pageId: string, user: User, reportTarget?: string ) => boolean | string[] | Promise; title: string; + disclaimer?: string; getReviewDisplay: ( ticket: TicketState & {text: [string, string]}, staff: User, conn: Connection ) => Promise | string | void; @@ -1094,6 +1095,9 @@ export const pages: Chat.PageTable = { const textTicket = textTickets[page.slice(7)]; if (textTicket) { buf += `

${this.tr(textTicket.title)}

`; + if (textTicket.disclaimer) { + buf += `

${this.tr(textTicket.disclaimer)}

`; + } buf += `
`; buf += `
`; buf += `Do you have any other information you want to provide? (this is optional)
`;