mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUAC-1126 Created user page service which provides the list of main pages for a user.
This commit is contained in:
		
				
					committed by
					
						 Michael Jumper
						Michael Jumper
					
				
			
			
				
	
			
			
			
						parent
						
							1d0b32388b
						
					
				
				
					commit
					7bf4cb83d8
				
			| @@ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * Copyright (C) 2014 Glyptodon LLC | ||||
|  * Copyright (C) 2015 Glyptodon LLC | ||||
|  * | ||||
|  * Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|  * of this software and associated documentation files (the "Software"), to deal | ||||
| @@ -94,14 +94,18 @@ angular.module('index').controller('indexController', ['$scope', '$injector', | ||||
|  | ||||
|     // Update title and CSS class upon navigation | ||||
|     $scope.$on('$routeChangeSuccess', function(event, current, previous) { | ||||
|         | ||||
|         // If the current route is available | ||||
|         if (current.$$route) { | ||||
|  | ||||
|         // Set title | ||||
|         var title = current.$$route.title; | ||||
|         if (title) | ||||
|             $scope.page.title = title; | ||||
|             // Set title | ||||
|             var title = current.$$route.title; | ||||
|             if (title) | ||||
|                 $scope.page.title = title; | ||||
|  | ||||
|         // Set body CSS class | ||||
|         $scope.page.bodyClassName = current.$$route.bodyClassName || ''; | ||||
|             // Set body CSS class | ||||
|             $scope.page.bodyClassName = current.$$route.bodyClassName || ''; | ||||
|         } | ||||
|  | ||||
|     }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user