mirror of https://gitee.com/bigwinds/arangodb
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:
parent
e34579764f
commit
24f98d69db
|
@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
@ -107,6 +107,7 @@
|
|||
},
|
||||
|
||||
updateServerStatus: function() {
|
||||
console.log(this.dbservers.url);
|
||||
this.dbservers.getStatuses(function(stat, serv) {
|
||||
$("#" + serv.replace(":", "\\:")).attr("class", "dbserver " + stat);
|
||||
});
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue