From 73733f2a9c345e35a880e552cae7ba48e17a2daf Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Tue, 24 Sep 2024 12:01:39 +0200 Subject: [PATCH] bug-fixed: connector not updated while adding new command --- .../cds-action-dtmf-form/cds-action-dtmf-form.component.ts | 6 +++--- .../cds-action-voice-base/cds-action-voice.component.ts | 6 +++--- .../cds-action-reply-v1/cds-action-reply.component.ts | 6 +++--- .../cds-action-reply-v2/cds-action-reply.component.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-dtmf-form/cds-action-dtmf-form.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-dtmf-form/cds-action-dtmf-form.component.ts index f9ef8283..70ffb101 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-dtmf-form/cds-action-dtmf-form.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-dtmf-form/cds-action-dtmf-form.component.ts @@ -166,7 +166,7 @@ export class CdsActionDTMFFormComponent implements OnInit { this.arrayResponses[previousPos-1] = waitCur; this.arrayResponses[previousPos] = msgCur; // this.logger.log( 'DROP REPLY ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -187,7 +187,7 @@ export class CdsActionDTMFFormComponent implements OnInit { to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -206,7 +206,7 @@ export class CdsActionDTMFFormComponent implements OnInit { to = from + 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts index 46ed8b0f..25b60026 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts @@ -166,7 +166,7 @@ export class CdsActionVoiceComponent implements OnInit { this.arrayResponses[previousPos-1] = waitCur; this.arrayResponses[previousPos] = msgCur; // this.logger.log( 'DROP REPLY ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -187,7 +187,7 @@ export class CdsActionVoiceComponent implements OnInit { to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -206,7 +206,7 @@ export class CdsActionVoiceComponent implements OnInit { to = from + 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts index 3d0e423f..8043f168 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts @@ -172,7 +172,7 @@ export class CdsActionReplyComponent implements OnInit { this.arrayResponses[previousPos-1] = waitCur; this.arrayResponses[previousPos] = msgCur; // this.logger.log( 'DROP REPLY ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -193,7 +193,7 @@ export class CdsActionReplyComponent implements OnInit { to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -212,7 +212,7 @@ export class CdsActionReplyComponent implements OnInit { to = from + 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts index 9f9db7f7..4dcccca8 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts @@ -211,7 +211,7 @@ export class CdsActionReplyV2Component implements OnInit { this.arrayResponses[previousPos-1] = waitCur; this.arrayResponses[previousPos] = msgCur; // this.logger.log( 'DROP REPLY ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -232,7 +232,7 @@ export class CdsActionReplyV2Component implements OnInit { to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) { @@ -251,7 +251,7 @@ export class CdsActionReplyV2Component implements OnInit { to = from + 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); // this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses); - this.connectorService.updateConnector(this.intentSelected.id); + this.connectorService.updateConnector(this.intentSelected.intent_id); const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.onUpdateAndSaveAction(element); } catch (error) {