Skip to content

Commit

Permalink
add schedulename
Browse files Browse the repository at this point in the history
  • Loading branch information
skadefro committed Aug 12, 2023
1 parent 1a5c7af commit 2ab5498
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions OpenFlow/src/public/Controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8655,7 +8655,7 @@ export class RunPackageCtrl extends entityCtrl<Base> {
}
if (!this.$scope.$$phase) { this.$scope.$apply(); }
}
async addprocess(streamid:string): Promise<void> {
async addprocess(streamid:string, schedulename:string = undefined): Promise<void> {
var _a = this.agents.find(x => x._id == this.id);
if (_a == null) return;
var payload ={
Expand All @@ -8668,6 +8668,9 @@ export class RunPackageCtrl extends entityCtrl<Base> {
div.classList.add("shadow"); div.classList.add("card");
var label = document.createElement("label");
label.innerText = "Stream " + streamid;
if(schedulename != null) {
label.innerText = schedulename + " (#" + streamid + ")";
}
div.appendChild(label);
var killbutton = document.createElement("button");
killbutton.innerText = "Kill";
Expand Down Expand Up @@ -8741,7 +8744,7 @@ export class RunPackageCtrl extends entityCtrl<Base> {
console.log("listprocesses !!!")
for(var i = 0; i < data.processes.length; i++) {
console.log("add process " + data.processes[i].id)
this.addprocess(data.processes[i].id);
this.addprocess(data.processes[i].id, data.processes[i].schedulename);
}
}
if(data.command != null) {
Expand Down

0 comments on commit 2ab5498

Please sign in to comment.