Skip to content

Commit

Permalink
Feature(402675):position changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GowthamKumarMVS committed Jan 2, 2025
1 parent c2a7588 commit f225bff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ng-template #userHandleTemplate let-data>
<div class="dropDown-container">
@if (data.name === 'addBlock') {
<button #addbtn ejs-button id="addbtn" iconCss='e-icons e-plus' cssClass='e-caret-hide'></button>
<button #addbtn ejs-button id="addbtn" iconCss='e-icons e-plus' cssClass='e-caret-hide bc-add-handler'></button>
}
@else if (data.name === 'editBlock'){
<button #editbtn ejs-button id="editbtn" iconCss='e-icons e-edit' cssClass='e-caret-hide'></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class WorkflowDiagramComponent implements AfterViewInit {
// Need to refresh the diagram whenever a node is added or modified
public onRuleNodeChange(): void {
this.diagram.setProperties({ nodes: [], connectors: [] }, true);
this.diagram.refresh();
this.diagram.refresh();
}

// on node delete
Expand All @@ -234,7 +234,7 @@ export class WorkflowDiagramComponent implements AfterViewInit {
this.diagram.selectedItems.userHandles[1].visible = false;
this.diagram.selectedItems.userHandles[2].visible = false;
}
var addbtn=document.getElementById('addbtn');
var addbtn=this.diagram.element.querySelector('.e-userHandle-layer .bc-add-handler');
var addPos = addbtn.getBoundingClientRect();
this.contextmenu.open(addPos.top + window.scrollY, addPos.left+window.scrollX);
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/workflow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export class WorkflowService {
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
};

updateRule(workflowId :number , ruleId: number, body : ChatWorkflowRulesUpdateRequest) : Promise<{ message: string }> {
updateRule(workflowId :number , ruleId: number, updateRuleRequest : ChatWorkflowRulesUpdateRequest) : Promise<{ message: string }> {
const url = WorkflowApiPaths.updateWorkflowRules
.replace('{baseUrl}', this.baseUrl)
.replace('{workflowId}', workflowId.toString())
.replace('{ruleId}', ruleId.toString());

return this.http.put<{ message: string }>(url, body, this.httpOptions).toPromise();
return this.http.put<{ message: string }>(url, updateRuleRequest, this.httpOptions).toPromise();
}

deleteRule(workflowId :number, ruleId: number): Promise<{ message: string }> {
Expand Down

0 comments on commit f225bff

Please sign in to comment.