diff --git a/web/dev/index.js b/web/dev/index.js index 6d58f6a1..8d15fbfa 100644 --- a/web/dev/index.js +++ b/web/dev/index.js @@ -978,6 +978,12 @@ function initDatatable() { window.location.href = "{{.WebRoot}}client/create/vector"; } }, + { + text: 'EksCtl', + action: function ( e, dt, node, config ) { + window.location.href = "{{.WebRoot}}client/create/eksctl"; + } + }, ] }, {extend: 'myspacer'}, @@ -1077,6 +1083,15 @@ function initDatatable() { window.location.href = "{{.WebRoot}}client/grow/vector?ClientName="+arr[0]["ClientName"]; } }, + { + text: 'EksCtl', + action: function ( e, dt, node, config ) { + let arr = []; + dt.rows({selected: true}).every(function(rowIdx, tableLoop, rowLoop) {arr.push(this.data());}); + if (arr.length != 1) {toastr.error("Select one row.");return;} + window.location.href = "{{.WebRoot}}client/grow/eksctl?ClientName="+arr[0]["ClientName"]; + } + }, ] }, {extend: 'myspacer'},