mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUAC-932: Fix display of history.
This commit is contained in:
		| @@ -43,12 +43,11 @@ angular.module('manage').controller('connectionEditModalController', ['$scope', | ||||
|     if(!$scope.connection.protocol) | ||||
|         $scope.connection.protocol = "vnc"; | ||||
|      | ||||
|     $scope.historyEntryWrappers = []; | ||||
|      | ||||
|     // Wrap all the history entries | ||||
|     if (!newConnection) { | ||||
|  | ||||
|         connectionService.getConnectionHistory($scope.connection.identifier).success(function wrapHistoryEntries(historyEntries) { | ||||
|             $scope.historyEntryWrappers = []; | ||||
|             historyEntries.forEach(function wrapHistoryEntry(historyEntry) { | ||||
|                $scope.historyEntryWrappers.push(new HistoryEntryWrapper(historyEntry));  | ||||
|             }); | ||||
| @@ -60,6 +59,7 @@ angular.module('manage').controller('connectionEditModalController', ['$scope', | ||||
|  | ||||
|     } | ||||
|     else { | ||||
|         $scope.historyEntryWrappers = []; | ||||
|         $scope.connection.parameters = {}; | ||||
|     } | ||||
|      | ||||
|   | ||||
| @@ -84,13 +84,10 @@ THE SOFTWARE. | ||||
|             <!-- History connection area --> | ||||
|             <dt>{{'manage.edit.connection.history.usageHistory' | translate}}</dt> | ||||
|  | ||||
|             <dd ng-hide="connection.history.length"> | ||||
|               <p>{{'manage.edit.connection.history.connectionNotUsed' | translate}}</p> | ||||
|             </dd> | ||||
|              | ||||
|             <!-- History connection list --> | ||||
|             <dd ng-show="connection.history.length"> | ||||
|                 <table class="history section"> | ||||
|             <dd ng-class="{loading: !historyEntryWrappers}"> | ||||
|                 <p ng-hide="historyEntryWrappers.length">{{'manage.edit.connection.history.connectionNotUsed' | translate}}</p> | ||||
|                 <table class="history section" ng-show="historyEntryWrappers.length"> | ||||
|                     <tr> | ||||
|                         <th>{{'manage.edit.connection.history.username' | translate}}</th> | ||||
|                         <th>{{'manage.edit.connection.history.startTime' | translate}}</th> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user