From fc4464c2ca0b50c0203046a89dd0d283e52f6c89 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 20 Feb 2017 22:04:18 +0100 Subject: [PATCH] Persist manually added runtimes, refs noflo/noflo-nodejs#105 --- elements/noflo-main.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elements/noflo-main.html b/elements/noflo-main.html index fd8435f70..bed89c580 100644 --- a/elements/noflo-main.html +++ b/elements/noflo-main.html @@ -599,8 +599,7 @@

{{ label }}

var dialog = document.createElement('noflo-new-runtime'); dialog.addEventListener('addRuntime', function(event) { var runtime = event.detail; - this.userRuntimes.push(runtime); - this.runtimes.push(runtime); + this.fire('runtime', event.detail); }.bind(this)); dialog.user = this.user; document.body.appendChild(dialog);