Skip to content

Commit

Permalink
Merge pull request #374 from aerospike/v7.6.0
Browse files Browse the repository at this point in the history
add eksctl to web inventory client create dropdown
  • Loading branch information
robertglonek authored Jul 29, 2024
2 parents 961bca9 + 32d203f commit e69b2ba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions web/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down

0 comments on commit e69b2ba

Please sign in to comment.