+
+
+
+
+
+ edit
+ |
+
+
+
+
+
+
diff --git a/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questionnaire/machine-learning-edit-questionnaire.component.ts b/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questionnaire/machine-learning-edit-questionnaire.component.ts
index b5ee06f5e7..29cbdf6fa4 100644
--- a/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questionnaire/machine-learning-edit-questionnaire.component.ts
+++ b/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questionnaire/machine-learning-edit-questionnaire.component.ts
@@ -19,6 +19,7 @@ export class MachineLearningEditQuestionnaireComponent {
name: string = '';
type: string = 'single-shot';
+ action: string = 'sendgrid-subscribe';
constructor(
private generalService: GeneralService,
@@ -28,6 +29,7 @@ export class MachineLearningEditQuestionnaireComponent {
if (this.data) {
this.name = this.data.name;
this.type = this.data.type;
+ this.action = this.data.action;
}
}
@@ -51,6 +53,7 @@ export class MachineLearningEditQuestionnaireComponent {
const data: any = {
name: this.name,
type: this.type,
+ action: this.action,
};
if (this.data) {
data.id = this.data.id;
diff --git a/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questions/machine-learning-edit-questions.component.ts b/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questions/machine-learning-edit-questions.component.ts
index 1ec996d785..8d9675c434 100644
--- a/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questions/machine-learning-edit-questions.component.ts
+++ b/frontend/src/app/_protected/pages/manage/machine-learning/components/machine-learning-edit-questions/machine-learning-edit-questions.component.ts
@@ -59,6 +59,15 @@ export class MachineLearningEditQuestionsComponent implements OnInit {
this.questions += 'context=' + idx.context;
addedMeta = true;
}
+ if (idx.name) {
+ if (!addedMeta) {
+ this.questions += ' => ';
+ } else {
+ this.questions += ', ';
+ }
+ this.questions += 'name=' + idx.name;
+ addedMeta = true;
+ }
this.questions += '\r\n'
}
},