1
0
Fork 0

Fixed a bug where it was not posible to shutdown a cluster, change the plan and restart it without reloading

This commit is contained in:
Michael Hackstein 2014-03-03 14:13:40 +01:00
parent e34579764f
commit 24f98d69db
5 changed files with 18 additions and 4 deletions

View File

@ -69,13 +69,20 @@
$('#waitModalLayer').modal('show');
$('.modal-backdrop.fade.in').addClass('waitModalBackdrop');
$('#waitModalMessage').html('Please be patient while your cluster is being launched');
delete this.model._coord;
this.model.save(
data,
{
success : function(info) {
$('.modal-backdrop.fade.in').removeClass('waitModalBackdrop');
$('#waitModalLayer').modal('hide');
window.App.updateAllUrls();
window.App.navigate("showCluster", {trigger: true});
},
error: function(obj, err) {
$('.modal-backdrop.fade.in').removeClass('waitModalBackdrop');
$('#waitModalLayer').modal('hide');
alert("Error while starting the cluster: " + err.statusText);
}
}
);

View File

@ -44,6 +44,7 @@
alert("Please define a number of database servers");
return;
}
delete this.model._coord;
this.model.save(
{
type: "testSetup",
@ -52,10 +53,16 @@
numberCoordinators: parseInt(c, 10)
},
{
success : function(info) {
success: function(info) {
$('.modal-backdrop.fade.in').removeClass('waitModalBackdrop');
$('#waitModalLayer').modal('hide');
window.App.updateAllUrls();
window.App.navigate("showCluster", {trigger: true});
},
error: function(obj, err) {
$('.modal-backdrop.fade.in').removeClass('waitModalBackdrop');
$('#waitModalLayer').modal('hide');
alert("Error while starting the cluster: " + err.statusText);
}
}
);

View File

@ -107,6 +107,7 @@
},
updateServerStatus: function() {
console.log(this.dbservers.url);
this.dbservers.getStatuses(function(stat, serv) {
$("#" + serv.replace(":", "\\:")).attr("class", "dbserver " + stat);
});

View File

@ -340,6 +340,7 @@ button.btn-server {
padding-bottom: 10px;
text-align: center;
button {
@extend %clickable;
background-color: #f1f1f1;
color: #333333;
padding: 12px 18px;
@ -351,7 +352,6 @@ button.btn-server {
font-weight: 300;
width: 250px;
text-align: center;
cursor: auto;
&:hover{
color: #4a6c30;
background-color: #e8e8e8;
@ -369,5 +369,4 @@ button.btn-server {
background-color: #8ba142;
}
}
;
}

File diff suppressed because one or more lines are too long