Skip to content

Commit

Permalink
input process list showing publish to mqtt and send email . was incor…
Browse files Browse the repository at this point in the history
…rectly hidden in last commit.
  • Loading branch information
emrysr committed Jun 15, 2018
1 parent 8c49f0d commit fe44de7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/process/Views/process_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ var processlist_ui =
$("#type-schedule").hide();

// Check ProcessArg Type
// console.log(processlist_ui.processlist[processid][0]);
if (processid) {
switch(processlist_ui.processlist[processid][1]) {
case 0: // VALUE
Expand Down Expand Up @@ -680,10 +681,10 @@ var processlist_ui =
var processgroups = [];
for (z in processlist_ui.processlist) {
//hide sendEmail and Publish to MQTT from virtual feeds
if (processlist_ui.contexttype == 1 &&
if (processlist_ui.contexttype == 1 && (
processlist_ui.processlist[z]['feedwrite'] == true ||
processlist_ui.processlist[z][2] == "sendEmail" ||
processlist_ui.processlist[z][2] == "publish_to_mqtt")
processlist_ui.processlist[z][2] == "publish_to_mqtt"))
{
continue; // in feed context and processor has a engine? dont show on virtual processlist selector
}
Expand Down

0 comments on commit fe44de7

Please sign in to comment.