Skip to content

Commit

Permalink
Adds HELM deploy button
Browse files Browse the repository at this point in the history
  • Loading branch information
pritchardn committed Feb 15, 2022
1 parent aa64d9b commit 49d2638
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions daliuge-translator/dlg/dropmake/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ $(document).ready(function () {

$('#rest_deploy_button').click(restDeploy);

$('#helm_deploy_button').click(function(){
$("#gen_helm_button").val("Generate & Deploy Physical Graph")
$("#dlg_helm_deploy").prop("checked", true)
$("#pg_helm_form").submit()
})

//deploy physical graph button listener
$("#deploy_button").click(function () {
$("#gen_pg_button").val("Generate & Deploy Physical Graph")
Expand Down
7 changes: 7 additions & 0 deletions daliuge-translator/dlg/dropmake/web/pg_viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
</div>
</ul>
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a href="javascript:void(0)" class="nav-link tooltip tooltipBottom" data-text="Deploy Physical Graph via HELM" id="helm_deploy_button" value="Deploy Physical Graph via HELM">HELM Deploy</a>
</li>
<li class="nav-item">
<a href="javascript:void(0)" class="nav-link tooltip tooltipBottom" data-text="Deploy Physical Graph via REST" id="rest_deploy_button" value="Deploy Physical Graph via REST">REST Deploy</a>
</li>
Expand Down Expand Up @@ -132,6 +135,10 @@ <h5 class="modal-title" id="settingsModalLabel">Settings</h5>
<input type="checkbox" id="dlg_mgr_deploy" style="visibility:hidden;" name="dlg_mgr_deploy" value="deploy" checked>
<input type="hidden" name="pgt_id" value="{{pgt_view_json_name}}">
</form>
<form action="/gen_pg_helm" method="get" id="pg_helm_form" target="_blank">
<input type="checkbox" id="dlg_helm_deploy" style="visibility:hidden;" name="dlg_helm_deploy" value="helm_deploy" checked>
<input type="hidden" name="pgt_id" value="{{pgt_view_json_name}}">
</form>
</div>
<div class="modal-footer">
<button onClick="" type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
Expand Down
2 changes: 1 addition & 1 deletion daliuge-translator/dlg/dropmake/web/src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
color:white;
}

#deploy_button, #rest_deploy_button{
#deploy_button, #rest_deploy_button, #helm_deploy_button{
color: white;
}

Expand Down

0 comments on commit 49d2638

Please sign in to comment.