Skip to content

Commit

Permalink
Merge branch 'master-PROD2' into features/action-replace-bot-v3-PROD2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Jan 22, 2025
2 parents cfd56be + b1b7aeb commit 69f2d35
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
</div>

<cds-detail-botdetail *ngIf="activeSection===SETTINGS_SECTION.DETAIL"
class="scrollMePage"
[selectedChatbot]="selectedChatbot"
[project]="project"
[isVisibleDEP]="isVisibleDEP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
width: 100%;
}

.scrollMePage{
max-height: calc(100vh - 130px);
overflow-y: scroll;
display: block;
}

::ng-deep .custom-mat-tooltip-in-faq-table {
background-color: #555555 !important;
color: #fff !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export class PanelIntentHeaderComponent implements OnInit, OnChanges {
this.intentService.getIntents().subscribe(intents => {
if(intents){
this.listOfIntents = intents;
this.intentName = this.intent.intent_display_name;
if(this.intent){
this.intentName = this.intent.intent_display_name;
}
}
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
{{ 'Agents available' | translate }}
</span>
</h3>
<div class="section-subtitle"></div> -->

<div class="nw-onoffswitch-wrapper" style="clear: both; display: inline-block;">
<div class="section-subtitle"></div>
-->

<div class="nw-onoffswitch-wrapper" style="clear: both; display: inline-block;">
<div *ngIf="intentSelected.agents_available" class="agents-available"><span class="material-icons">boy</span></div>
<div class="nw-onoffswitch">
<input type="checkbox" name="agents_available_switch"
class="nw-onoffswitch-checkbox" id="agents_available_switch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@
}
}

.agents-available {
position: absolute;
margin-left: -26px;
margin-top: 20px;
}

// --------------------
// SWITCH BTN
Expand Down
4 changes: 3 additions & 1 deletion src/app/chatbot-design-studio/services/intent.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ export class IntentService {
/** create a new intent when drag an action on the stage */
public createNewIntent(id_faq_kb: string, action: any, pos:any){
let intent = new Intent();
intent.id_faq_kb = id_faq_kb;
// intent.id_faq_kb = id_faq_kb;
const chatbot_id = this.dashboardService.id_faq_kb;
intent.id_faq_kb = chatbot_id;
intent.attributes.position = pos;
intent.intent_display_name = this.setDisplayName();
// let actionIntent = this.createNewAction(TYPE_ACTION.INTENT);
Expand Down

0 comments on commit 69f2d35

Please sign in to comment.