aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2018-12-05 16:13:13 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-12-05 16:13:13 +0000
commit527d16d05016c029c022f77134f069af68218e61 (patch)
tree423bce57823f8e36b14538e64f9b7c0fb01be054 /src/templates
parentc6f4fc073bd84b22864495959fad9a53b57e793c (diff)
parent218abb53583cb2d1a3359e06013e31b0302f59c6 (diff)
Merge "Add Nav Button Disabling Behavior"
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/workflow/viewport-base.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/templates/workflow/viewport-base.html b/src/templates/workflow/viewport-base.html
index fd9b638..37eff27 100644
--- a/src/templates/workflow/viewport-base.html
+++ b/src/templates/workflow/viewport-base.html
@@ -14,6 +14,9 @@
height: calc(100% - 170px);
}
+ .go_btn_disabled{
+ background-color: #ffffff;
+ }
.go_forward{
right: 0px;
border-left: none;
@@ -208,6 +211,30 @@
function update_breadcrumbs(meta_json) {
step = meta_json['active'];
page_count = meta_json['steps'].length;
+ if( step == 0 )
+ {
+ var btn = document.getElementById("gob");
+ btn.classList.add("go_btn_disabled");
+ btn.disabled = true;
+ }
+ else
+ {
+ var btn = document.getElementById("gob");
+ btn.classList.remove("go_btn_disabled");
+ btn.disabled = false;
+ }
+ if( step == page_count - 1 )
+ {
+ var btn = document.getElementById("gof");
+ btn.classList.add("go_btn_disabled");
+ btn.disabled = true;
+ }
+ else
+ {
+ var btn = document.getElementById("gof");
+ btn.classList.remove("go_btn_disabled");
+ btn.disabled = false;
+ }
//remove all children of breadcrumbs so we can redraw
var container = document.getElementById("breadcrumbs");
while(container.firstChild){