Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Added back-link (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-fra committed Aug 31, 2017
1 parent a76d6dd commit 4b0e00e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>Smarti Configuration</h1>

<div class="footer">
<div class="container">
<p><span class="glyphicon glyphicon-heart"></span> from the Redlink</p>
<p>with <span class="glyphicon glyphicon-heart"></span> from the Redlink Team</p>
</div>
</div>

Expand Down
5 changes: 5 additions & 0 deletions frontend/src/app/scripts/controllers/conversation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/app/views/conversations.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
~ limitations under the License.
~
-->

<h2>Conversations for <span ng-bind="$resolve.client.data.name"></span></h2>
<div class="clearfix">
<div class="pull-right">
<button class="btn btn-default" ng-click="$ctrl.backToList()">Back to List</button>
</div>
<h2>Conversations for <span ng-bind="$resolve.client.data.name"></span></h2>
</div>
<div>
<div class="clearfix">
<div class="pull-right">
Expand Down

0 comments on commit 4b0e00e

Please sign in to comment.