Skip to content
Snippets Groups Projects
Commit 97f8ea86 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Set duniter node version in title page

parent f832a4d5
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
var co = require('co'); var co = require('co');
module.exports = ($scope, $http, $state, BMA) => { module.exports = ($scope, $http, $state, BMA, summary, UIUtils) => {
UIUtils.changeTitle(summary.version);
$scope.message = 'index.message.loading'; $scope.message = 'index.message.loading';
co(function *() { co(function *() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
var co = require('co'); var co = require('co');
module.exports = ($scope, $state, BMA) => { module.exports = ($scope, $state, BMA, summary, UIUtils) => {
Waves.displayEffect(); Waves.displayEffect();
...@@ -13,6 +13,8 @@ module.exports = ($scope, $state, BMA) => { ...@@ -13,6 +13,8 @@ module.exports = ($scope, $state, BMA) => {
}); });
} }
UIUtils.changeTitle(summary.version);
$scope.startServer = () => { $scope.startServer = () => {
$scope.server_stopped = false; $scope.server_stopped = false;
return co(function *() { return co(function *() {
......
...@@ -10,6 +10,10 @@ module.exports = (app) => { ...@@ -10,6 +10,10 @@ module.exports = (app) => {
state('index', { state('index', {
url: '/', url: '/',
template: require('views/index'), template: require('views/index'),
resolve: {
ws: (BMA) => BMA.webmin.ws(),
summary: (BMA) => BMA.webmin.summary()
},
controller: 'IndexController' controller: 'IndexController'
}). }).
...@@ -90,7 +94,8 @@ module.exports = (app) => { ...@@ -90,7 +94,8 @@ module.exports = (app) => {
url: '/main', url: '/main',
template: require('views/main/main'), template: require('views/main/main'),
resolve: { resolve: {
ws: (BMA) => BMA.webmin.ws() ws: (BMA) => BMA.webmin.ws(),
summary: (BMA) => BMA.webmin.summary()
}, },
controller: 'MainController' controller: 'MainController'
}). }).
...@@ -106,7 +111,6 @@ module.exports = (app) => { ...@@ -106,7 +111,6 @@ module.exports = (app) => {
url: '/overview', url: '/overview',
template: require('views/main/home/tabs/overview'), template: require('views/main/home/tabs/overview'),
resolve: { resolve: {
summary: (BMA) => BMA.webmin.summary(),
startHttp: (BMA) => BMA.webmin.server.http.start(), startHttp: (BMA) => BMA.webmin.server.http.start(),
bmapi: (BMA, summary) => co(function *() { bmapi: (BMA, summary) => co(function *() {
return BMA.instance(summary.host); return BMA.instance(summary.host);
......
...@@ -23,7 +23,9 @@ module.exports = (app) => { ...@@ -23,7 +23,9 @@ module.exports = (app) => {
.replace(/\./, ''); .replace(/\./, '');
jTabs.tabs('select_tab', currentID); jTabs.tabs('select_tab', currentID);
} },
changeTitle: (version) => document.title = 'Duniter ' + version
} }
}); });
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment