Skip to content

Commit fa0d0c9

Browse files
committed
Merge pull request gearpump#497 from stanleyxu2005/fix_422
fix gearpump#422: (1) redirect to cluster page (2) added color to master status ...
2 parents ae2124b + 3c17764 commit fa0d0c9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/src/main/scala/org/apache/gearpump/cluster/ClusterMessage.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ object AppMasterToMaster {
7979
case class WorkerData(workerDescription: Option[WorkerDescription])
8080

8181
case object GetMasterData
82-
case class MasterData(masterDescripton: MasterDescription)
82+
case class MasterData(masterDescription: MasterDescription)
8383
}
8484

8585
object MasterToAppMaster {

services/dashboard/partials/master.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
</tr>
1313
<tr>
1414
<td class="summaryItemName">Status</td>
15-
<td>{{summary.status}}</td>
15+
<td><span ng-class="summary.status=='synced'?'label-success':'label-warning'" class="label">{{summary.status}}</span></td>
1616
</tr>
1717
<tr>
1818
<td class="summaryItemName">Alive For</td>
1919
<td>{{summary.aliveFor|readableTime}}</td>
2020
</tr>
2121
<tr>
22-
<td class="summaryItemName">Logfile Location</td>
22+
<td class="summaryItemName">Log File Location</td>
2323
<td>{{summary.logFile}}</td>
2424
</tr>
2525
<tr>

services/dashboard/scripts/app-01.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ angular.module('app-01', ['ngTable', 'readable'])
3232
var url = location.origin + '/master';
3333
$scope.summary = {};
3434
$http.get(url).then(function (response) {
35-
var description = response.data.masterDescripton;
35+
var description = response.data.masterDescription;
3636
$scope.summary = {
3737
aliveFor: description.aliveFor,
3838
logFile: description.logFile,

services/dashboard/scripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ angular.module('app', [
4747
}).when('/apps', {
4848
templateUrl: 'partials/app.html',
4949
controller: 'app02Ctrl'
50-
});
50+
}).otherwise({redirectTo: '/cluster'});
5151

5252
})
5353
.controller('navigationCtrl', function($scope, $location){

0 commit comments

Comments
 (0)