mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 07:27:42 +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 = {};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user