Skip to content

Commit 4c22f4a

Browse files
committed
231
1 parent 45633e7 commit 4c22f4a

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ export class Message {
560560
containers: [
561561
{
562562
name: 'nodered',
563-
image: 'cloudhack/openflownodered:0.0.229',
563+
image: 'cloudhack/openflownodered:0.0.231',
564564
imagePullPolicy: "Always",
565565
env: [
566566
{ name: "saml_federation_metadata", value: Config.saml_federation_metadata },

OpenFlow/src/public/CommonControllers.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ module openflow {
395395
this.loading = false;
396396
if (!this.$scope.$$phase) { this.$scope.$apply(); }
397397
}
398-
399398
ToggleOrder(field: string) {
400399
if (this.orderby[field] == undefined) {
401400
this.orderby = {};
@@ -410,6 +409,13 @@ module openflow {
410409
}
411410
this._loadData();
412411
}
412+
async DeleteOne(model: any): Promise<any> {
413+
this.loading = true;
414+
await this.api.Delete(this.collection, model);
415+
this.models = this.models.filter(function (m: any): boolean { return m._id !== model._id; });
416+
this.loading = false;
417+
if (!this.$scope.$$phase) { this.$scope.$apply(); }
418+
}
413419
}
414420

415421

OpenFlow/src/public/Workflows.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ <h1 translate lib="web">workflows</h1>
1717
<td class="btn-cell">
1818
<a ng-href="#/Form/{{model._id}}" translate lib="web">invoke</a>
1919
</td>
20+
<td class="btn-cell">
21+
<a href ng-click="ctrl.DeleteOne(model)"><i class="az-trash"></i></a>
22+
</td>
2023
</tr>
2124
</tbody>
2225
</table>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.230
1+
0.0.231

0 commit comments

Comments
 (0)