1
0
Fork 0
This commit is contained in:
Heiko Kernbach 2013-07-24 19:53:59 +02:00
parent 83fd35af3e
commit 4913481272
2 changed files with 11 additions and 2 deletions

View File

@ -317,6 +317,7 @@ input[type="radio"]:checked + label span {
min-height: 150px; min-height: 150px;
float: left; float: left;
margin-left: 10px; margin-left: 10px;
margin-bottom: 8px;
} }
.alignLeft { .alignLeft {
@ -329,7 +330,7 @@ input[type="radio"]:checked + label span {
} }
#detailReplication { #detailReplication {
height: 190px; height: auto !important;
} }
.trueClass { .trueClass {

View File

@ -99,6 +99,7 @@ var dashboardView = Backbone.View.extend({
putReplicationStatus: function () { putReplicationStatus: function () {
var time; var time;
var clientString = '';
if (this.replApplyState.state.running === true) { if (this.replApplyState.state.running === true) {
$('#detailReplication').height(290); $('#detailReplication').height(290);
@ -107,15 +108,22 @@ var dashboardView = Backbone.View.extend({
else { else {
$('.checkApplyRunningStatus').hide(); $('.checkApplyRunningStatus').hide();
} }
time = this.replLogState.state.time; time = this.replLogState.state.time;
if (this.replLogState.state.clients) {
$.each(this.replLogState.state.clients, function(k,v) {
clientString = clientString + "Server: "+v.serverId+" | Time: "+v.time+"\n";
});
}
//log table //log table
$('#logRunningVal').text(this.replLogState.state.running); $('#logRunningVal').text(this.replLogState.state.running);
$('#logTimeVal').text(time); $('#logTimeVal').text(time);
$('#logLastTickVal').text(this.replLogState.state.lastLogTick); $('#logLastTickVal').text(this.replLogState.state.lastLogTick);
$('#logClientsVal').text(JSON.stringify(this.replLogState.clients)); $('#logClientsVal').text(JSON.stringify(this.replLogState.clients));
//apply table //apply table
var lastAppliedTick; var lastAppliedTick;
var phase = "-"; var phase = "-";