Skip to content

Commit

Permalink
feature(402683): resolved conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayalakshmirSF4471 committed Dec 27, 2024
2 parents 646d833 + f61b381 commit 59276ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<ng-template #nodeTemplate let-data>
@if(data.data.chatWorkflowBlockId !== chatWorkflowBlockTypeEnum.SendTextMessage && data.data.chatWorkflowBlockId !== chatWorkflowBlockTypeEnum.GetCustomerDetails) {
<div><label style="padding: 5px;">{{ data.data.fieldDetails.label }}</label></div>
<div><label style="padding: 5px;">{{ data.data.fieldDetails.description }}</label></div>
}
@switch (data.data.chatWorkflowBlockId){
@case(chatWorkflowBlockTypeEnum.SendTextMessage){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
<div class="form-header"> {{sidebarHeader}}</div>
<div [hidden]="nodeBlockType === chatWorkflowBlockTypeEnum.GetCustomerDetails">
<label>
Label: <input type="text" [(ngModel)]="sideBarLabel" name="sideBarLabel" placeholder="Enter label..." class="description-box" required />
Description: <input type="text" [(ngModel)]="sideBarDescription" name="singleDescription" placeholder="Enter description..." class="description-box" />
</label>
</div>

<ng-template #sideBarDescriptionTemplate>
<label>
Description: <input type="text" [(ngModel)]="sideBarDescription" name="singleDescription" placeholder="Enter description..." class="description-box" />
Label: <input type="text" [(ngModel)]="sideBarLabel" name="sideBarLabel" placeholder="Enter label..." class="description-box" required />
</label>
</ng-template>
</div>

<ng-template #sideBarPlaceholderTemplate>
<label>
Expand Down Expand Up @@ -86,15 +83,13 @@
}
@case(chatWorkflowEditorTypeEnum.DropDown){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div class="button-list" *ngTemplateOutlet="removeButtonTemplate"></div>
<div class="add-button-form" *ngTemplateOutlet="addOptionTemplate"></div>
</div>
}
@case(chatWorkflowEditorTypeEnum.MultiSelect){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div class="button-list" *ngTemplateOutlet="removeButtonTemplate"></div>
<div class="add-button-form" *ngTemplateOutlet="addOptionTemplate"></div>
Expand All @@ -104,7 +99,6 @@
}
@case(chatWorkflowEditorTypeEnum.List){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div class="button-list" *ngTemplateOutlet="removeButtonTemplate"></div>
<div class="add-button-form" *ngTemplateOutlet="addOptionTemplate; context: { visibility: true }"></div>
Expand All @@ -128,37 +122,32 @@
}
@case(chatWorkflowEditorTypeEnum.Number){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div *ngTemplateOutlet="fieldOptionMinValueTemplate"></div>
<div *ngTemplateOutlet="fieldOptionMaxValueTemplate"></div>
</div>
}
@case(chatWorkflowEditorTypeEnum.Decimal){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div *ngTemplateOutlet="fieldOptionMinValueTemplate"></div>
<div *ngTemplateOutlet="fieldOptionMaxValueTemplate"></div>
</div>
}
@case(chatWorkflowEditorTypeEnum.Text){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div *ngTemplateOutlet="fieldOptionMaxValueTemplate"></div>
</div>
}
@case(chatWorkflowEditorTypeEnum.TextArea){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<div *ngTemplateOutlet="fieldOptionMaxValueTemplate"></div>
</div>
}
@case(chatWorkflowEditorTypeEnum.Regex){
<div>
<div *ngTemplateOutlet="sideBarDescriptionTemplate"></div>
<div *ngTemplateOutlet="sideBarPlaceholderTemplate"></div>
<label>
Regex: <input type="text" [(ngModel)]="fieldOptionRegexValue" name="fieldOptionRegexValue" placeholder="Enter regex here" class="description-box" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class WorkflowSidebarComponent {
switch (this.nodeBlockType) {
case (this.chatWorkflowBlockTypeEnum.SendTextMessage): {
let messageInfo: MessageDetails = {
text: this.sideBarLabel,
text: this.sideBarDescription,
isPrivate: this.checkedIsPrivate,
textFormat: this.ddlTextFormat.value as TextFormatEnum
}
Expand Down

0 comments on commit 59276ed

Please sign in to comment.