diff options
Diffstat (limited to 'src/templates/base/resource/steps')
-rw-r--r-- | src/templates/base/resource/steps/pod_definition.html | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/src/templates/base/resource/steps/pod_definition.html b/src/templates/base/resource/steps/pod_definition.html index 83c4fcb..233d995 100644 --- a/src/templates/base/resource/steps/pod_definition.html +++ b/src/templates/base/resource/steps/pod_definition.html @@ -39,27 +39,32 @@ </form> <script> //gather context data - let debug = false; - {% if debug %} - debug = true; - {% endif %} + try { + let debug = false; + {% if debug %} + debug = true; + {% endif %} - const False = false; - const True = true; + const False = false; + const True = true; - let resources = {{resources|safe}}; - let networks = {{networks|safe}}; + let resources = {{resources|safe}}; + let networks = {{networks|safe}}; + + network_step = new NetworkStep( + debug, + resources, + networks, + document.getElementById('graphContainer'), + document.getElementById('outlineContainer'), + document.getElementById('toolbarContainer'), + document.getElementById('sidebarContainer') + ); + form_submission_callbacks.push(() => network_step.prepareForm()); + } catch (e) { + console.log(e) + } - network_step = new NetworkStep( - debug, - resources, - networks, - document.getElementById('graphContainer'), - document.getElementById('outlineContainer'), - document.getElementById('toolbarContainer'), - document.getElementById('sidebarContainer') - ); - form_submission_callbacks.push(() => network_step.prepareForm()); </script> {% endblock content %} {% block onleave %} |