Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Add: `persistAskInSlack` meta.json option. When set to `true`, the `ZNAI_SEND_TO_SLACK_URL` will receive `persist: false`
in the request body
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export function TextSelectionMenu({ containerNode }: { containerNode: HTMLDivEle
slackChannel: getDocMeta().slackChannel,
question: question,
context: panelData!.context,
persist: getDocMeta().persistAskInSlack,
};

try {
Expand Down
1 change: 1 addition & 0 deletions znai-reactjs/src/structure/docMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface DocMeta {
previewEnabled: boolean;
slackChannel?: string;
sendToSlackUrl?: string;
persistAskInSlack?: boolean;
slackActiveQuestionsUrl?: string;
resolveSlackQuestionUrl?: string;
trackActivityUrl?: string;
Expand Down
Loading