From 60f249aa6fd47b311ca9016ba8029be4b55f5322 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 21 Dec 2014 20:14:11 -0800 Subject: [PATCH] GUAC-932: Fix display of history. --- .../manage/controllers/connectionEditModalController.js | 4 ++-- .../webapp/app/manage/templates/editableConnection.html | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/guacamole/src/main/webapp/app/manage/controllers/connectionEditModalController.js b/guacamole/src/main/webapp/app/manage/controllers/connectionEditModalController.js index 568450257..5df9da58c 100644 --- a/guacamole/src/main/webapp/app/manage/controllers/connectionEditModalController.js +++ b/guacamole/src/main/webapp/app/manage/controllers/connectionEditModalController.js @@ -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 = {}; } diff --git a/guacamole/src/main/webapp/app/manage/templates/editableConnection.html b/guacamole/src/main/webapp/app/manage/templates/editableConnection.html index 06c5e3a50..66bcfd576 100644 --- a/guacamole/src/main/webapp/app/manage/templates/editableConnection.html +++ b/guacamole/src/main/webapp/app/manage/templates/editableConnection.html @@ -84,13 +84,10 @@ THE SOFTWARE.
{{'manage.edit.connection.history.usageHistory' | translate}}
-
-

{{'manage.edit.connection.history.connectionNotUsed' | translate}}

-
- -
- +
+

{{'manage.edit.connection.history.connectionNotUsed' | translate}}

+
{{'manage.edit.connection.history.username' | translate}} {{'manage.edit.connection.history.startTime' | translate}}