aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/base/resource/steps
diff options
context:
space:
mode:
authorJustin Choquette <jchoquette@iol.unh.edu>2022-06-07 16:07:54 -0400
committerJustin Choquette <jchoquette@iol.unh.edu>2022-09-29 13:34:30 -0400
commit4edb8881357e043fd7ea15efeb2d592c9fb55efc (patch)
treeeac25aa9f64e1938348ccd3cbb0cadde4b995837 /src/templates/base/resource/steps
parentb7df4193fef9adeccf99685af7d7420274d66064 (diff)
Laas Dashboard Front End Improvements
Change-Id: Ib9aa21747bd57faef94db7795cd89119ad4b0a9d Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
Diffstat (limited to 'src/templates/base/resource/steps')
-rw-r--r--src/templates/base/resource/steps/pod_definition.html41
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 %}