Skip to content

Commit 3a3b8a3

Browse files
committed
redir on none
1 parent 2ce701f commit 3a3b8a3

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,8 +1520,9 @@ module openflow {
15201520
if (this.instanceid !== null && this.instanceid !== undefined && this.instanceid !== "") {
15211521
var res = await this.api.Query("workflow_instances", { _id: this.instanceid }, null, { _created: -1 }, 1);
15221522
if (res.length > 0) { this.model = res[0]; } else { console.error(this.id + " workflow instances not found!"); return; }
1523-
console.log(this.model);
1524-
console.log(this.model.form);
1523+
// console.log(this.model);
1524+
// console.log(this.model.form);
1525+
console.log("form: " + this.model.form);
15251526
if (this.model.payload === null || this.model.payload === undefined) {
15261527
this.model.payload = { _id: this.instanceid };
15271528
}
@@ -1530,7 +1531,11 @@ module openflow {
15301531
}
15311532

15321533

1533-
if (this.model.form !== "") {
1534+
if (this.model.form === "none") {
1535+
this.$location.path("/main");
1536+
if (!this.$scope.$$phase) { this.$scope.$apply(); }
1537+
return;
1538+
} else if (this.model.form !== "") {
15341539
var res = await this.api.Query("forms", { _id: this.model.form }, null, { _created: -1 }, 1);
15351540
if (res.length > 0) { this.form = res[0]; } else {
15361541
if (this.model.state == "completed") {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.468
1+
0.0.469

0 commit comments

Comments
 (0)