From 4b0e00e864cf261750d2c577a4572174924cc6c4 Mon Sep 17 00:00:00 2001 From: Jakob Frank Date: Thu, 31 Aug 2017 18:46:32 +0200 Subject: [PATCH] Added back-link (#33) --- frontend/src/app/index.html | 2 +- frontend/src/app/scripts/controllers/conversation.js | 5 +++++ frontend/src/app/views/conversations.html | 8 ++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/index.html b/frontend/src/app/index.html index ff7c8551..5b79de61 100644 --- a/frontend/src/app/index.html +++ b/frontend/src/app/index.html @@ -35,7 +35,7 @@

Smarti Configuration

diff --git a/frontend/src/app/scripts/controllers/conversation.js b/frontend/src/app/scripts/controllers/conversation.js index 875cbb97..269be42a 100644 --- a/frontend/src/app/scripts/controllers/conversation.js +++ b/frontend/src/app/scripts/controllers/conversation.js @@ -35,12 +35,17 @@ angular.module('smartiApp') }; $ctrl.openConversation = openConversation; + $ctrl.backToList = backToList; $scope.$watch('$ctrl.paging.currentPage', loadConversations); $scope.$watch('$ctrl.paging.pageSize', loadConversations); loadConversations(); + function backToList() { + $location.path('/'); + } + function loadConversations() { $ctrl.conversations = null; return ConversationService.listForClient(client.data.id, $ctrl.paging.currentPage -1, $ctrl.paging.pageSize) diff --git a/frontend/src/app/views/conversations.html b/frontend/src/app/views/conversations.html index e53e07c6..2f77c1db 100644 --- a/frontend/src/app/views/conversations.html +++ b/frontend/src/app/views/conversations.html @@ -14,8 +14,12 @@ ~ limitations under the License. ~ --> - -

Conversations for

+
+
+ +
+

Conversations for

+