mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 20:55:00 -04:00
Move profile parts of the rooms page and the config content into a new page: settings
This commit is contained in:
parent
dde50d4245
commit
aaf623fa53
8 changed files with 237 additions and 201 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue