Move profile parts of the rooms page and the config content into a new page: settings

This commit is contained in:
Emmanuel ROHEE 2014-08-22 17:11:39 +02:00
parent dde50d4245
commit aaf623fa53
8 changed files with 237 additions and 201 deletions

View file

@ -31,31 +31,15 @@ angular.module('MatrixWebClientController', ['matrixService'])
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
$scope.location = $location.path();
});
// Manage the display of the current config
$scope.config;
// Toggles the config display
$scope.showConfig = function() {
if ($scope.config) {
$scope.config = undefined;
}
else {
$scope.config = matrixService.config();
}
};
$scope.closeConfig = function() {
if ($scope.config) {
$scope.config = undefined;
}
};
if (matrixService.isUserLoggedIn()) {
// eventStreamService.resume();
}
$scope.go = function(url) {
$location.url(url);
};
// Logs the user out
$scope.logout = function() {
// kill the event stream