Skip to content

Commit

Permalink
Changing to conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Sep 18, 2023
1 parent acd0638 commit 5879fa8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ data.connect:[generic|magic]
response.headers.set
Content-Type:text/csv
Access-Control-Expose-Headers:Content-Disposition
Content-Disposition:"attachment; filename=\"leads.csv\""
Content-Disposition:"attachment; filename=\"conversations.csv\""

// Returning content to caller.
return:x:@lambda2csv
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class MachineLearningTrainingService {
ml_export_questionnaires(filter: any = null) {

this.httpService.download(
'/magic/system/magic/ml_requests_export_questionnaires' +
'/magic/system/magic/ml_requests_export_conversations' +
(filter?.type ? this.queryArgService.getQueryArgs(filter) : '')).subscribe({
next: (res) => {

Expand All @@ -121,7 +121,7 @@ export class MachineLearningTrainingService {
},
error: () => {

this.generalService.showFeedback('No questionnaire data was found', 'errorMessage');
this.generalService.showFeedback('No conversation data was found', 'errorMessage');
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ <h3 class="mb-2 fw-bold">Machine Learning history</h3>
(filterList)="filterList($event)"
buttonText="Export leads"
(buttonClick)="exportLeads()"
[buttonDisabled]="!type"
button2Text="Export conversations"
(button2Click)="exportQuestionnaires()"
[button2Disabled]="!type"
[(type)]="type"
[types]="types">
</app-searchbox>
Expand Down

0 comments on commit 5879fa8

Please sign in to comment.