|
1 | 1 | let |
2 | 2 | globalFlowID, |
| 3 | + globalFlowName, |
3 | 4 | globalFlowStepsData = []; |
4 | 5 |
|
5 | 6 |
|
@@ -166,8 +167,9 @@ function removeFlowDo(flowID) { |
166 | 167 |
|
167 | 168 |
|
168 | 169 | // -- Open flow |
169 | | -function openFlow(flowID) { |
| 170 | +function openFlow(flowID, flowName) { |
170 | 171 | globalFlowID = flowID; |
| 172 | + globalFlowName = flowName || dqs("#flowName").innerText; |
171 | 173 |
|
172 | 174 | fetch("/api/flow_steps/all?flowID=" + flowID, { |
173 | 175 | method: "GET" |
@@ -390,6 +392,11 @@ async function buildFlowHTML(data) { |
390 | 392 | const html = jsCreateElement('div', { |
391 | 393 | children: [ |
392 | 394 | jsCreateElement('div', { |
| 395 | + attrs: { |
| 396 | + id: 'flowName', |
| 397 | + class: 'headingH3 mb20' |
| 398 | + }, |
| 399 | + children: [globalFlowName] |
393 | 400 | }), |
394 | 401 | jsCreateElement('div', { |
395 | 402 | children: flowSteps |
@@ -724,11 +731,11 @@ function openStepStats(stepID) { |
724 | 731 | ajaxURL:"/api/flow_steps/stats/contacts?flowStepID=" + stepID, |
725 | 732 | progressiveLoad:"scroll", |
726 | 733 | columns:[ |
727 | | - {title:"Status", field:"status", width:200}, |
728 | | - {title:"Contact", field:"user_email", width:200}, |
729 | | - {title:"Sent At", field:"sent_at", width:200}, |
730 | | - {title:"Opened times", field:"open_count", width:200}, |
731 | | - {title:"Scheduled for", field:"scheduled_for", width:200}, |
| 734 | + {title:"Status", field:"status", headerFilter:true, width:200}, |
| 735 | + {title:"Contact", field:"user_email", headerFilter:true, width:200}, |
| 736 | + {title:"Sent At", field:"sent_at", headerFilter:true, width:200}, |
| 737 | + {title:"Opened times", field:"open_count", headerFilter:true, width:200}, |
| 738 | + {title:"Scheduled for", field:"scheduled_for", headerFilter:true, width:200}, |
732 | 739 | ], |
733 | 740 | }); |
734 | 741 |
|
|
0 commit comments