mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-05-06 00:36:44 +00:00
60 lines
1.5 KiB
JavaScript
60 lines
1.5 KiB
JavaScript
/* Modals Switches */
|
|
function setModalState(state) {
|
|
modal_opened = state;
|
|
}
|
|
|
|
function showCurrentChaosContainer() {
|
|
getCurrentChaosContainer();
|
|
$('#currentChaosContainerModal').modal('show');
|
|
setModalState(true);
|
|
}
|
|
|
|
function closeCurrentChaosJobModal() {
|
|
$('#currentChaosContainerModal').modal('hide');
|
|
setModalState(false);
|
|
}
|
|
|
|
function showSetCurrentChaosContainer() {
|
|
$('#alert_placeholder2').text('');
|
|
getCurrentChaosContainer();
|
|
$('#setChaosContainerModal').modal('show');
|
|
setModalState(true);
|
|
}
|
|
|
|
function closeSetChaosContainerModal() {
|
|
$('#setChaosContainerModal').modal('hide');
|
|
setModalState(false);
|
|
}
|
|
|
|
function closeSpecialKeysModal() {
|
|
$('#showSpecialKeysModal').modal('hide');
|
|
setModalState(false);
|
|
}
|
|
|
|
function closeKubeLinterModal() {
|
|
$('#kubeLinterModal').modal('hide');
|
|
setModalState(false);
|
|
}
|
|
|
|
function closeSetLoadTestModal() {
|
|
$('#setLoadTestModal').modal('hide');
|
|
setModalState(false);
|
|
}
|
|
|
|
function showPrepareChaosReportModal(checkbox) {
|
|
if(checkbox.checked){
|
|
$('#prepareChaosReportModal').modal('show');
|
|
$("#chaosReportHeader").text("Configuration of Chaos Report for namespace: " + namespace);
|
|
setCodeNameToTextInput("chaosReportAuthor");
|
|
setCodeNameToTextInput("chaosReportProject");
|
|
setModalState(true);
|
|
//$("#httpStatsCanvasDiv").style.display = "block";
|
|
} else {
|
|
closePrepareChaosReportModal();
|
|
}
|
|
}
|
|
|
|
function closePrepareChaosReportModal() {
|
|
$('#prepareChaosReportModal').modal('hide');
|
|
setModalState(false);
|
|
} |