From 86184a9a6c518607c3413c602448e77e02605683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 15 Feb 2017 12:13:27 +0100 Subject: [PATCH 1/2] Fix ordering labels --- app/modules/history/history-tabs/history-tabs.jade | 8 ++++---- app/modules/history/history.controller.coffee | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/modules/history/history-tabs/history-tabs.jade b/app/modules/history/history-tabs/history-tabs.jade index d9e25e30..5cca8483 100644 --- a/app/modules/history/history-tabs/history-tabs.jade +++ b/app/modules/history/history-tabs/history-tabs.jade @@ -27,17 +27,17 @@ nav.history-tabs span( translate="COMMENTS.OLDER_FIRST" - ng-if="onReverse" + ng-if="!onReverse" ) tg-svg( svg-icon="icon-arrow-down" - ng-if="onReverse" + ng-if="!onReverse" ) span( translate="COMMENTS.RECENT_FIRST" - ng-if="!onReverse" + ng-if="onReverse" ) tg-svg( svg-icon="icon-arrow-up" - ng-if="!onReverse" + ng-if="onReverse" ) diff --git a/app/modules/history/history.controller.coffee b/app/modules/history/history.controller.coffee index de452840..492975bf 100644 --- a/app/modules/history/history.controller.coffee +++ b/app/modules/history/history.controller.coffee @@ -32,8 +32,8 @@ class HistorySectionController @.deleting = null @.editMode = {} @.viewComments = true - @._loadHistory() @.reverse = @storage.get("orderComments") + @._loadHistory() _loadHistory: () -> @rs.history.get(@.name, @.id).then (history) => From d7c6e6333057359dd5dc32a832d3e4a2e6f361f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 15 Feb 2017 13:08:58 +0100 Subject: [PATCH 2/2] In the order of comments the arrow alwais points up --- app/modules/history/history-tabs/history-tabs.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/history/history-tabs/history-tabs.jade b/app/modules/history/history-tabs/history-tabs.jade index 5cca8483..74022b39 100644 --- a/app/modules/history/history-tabs/history-tabs.jade +++ b/app/modules/history/history-tabs/history-tabs.jade @@ -30,7 +30,7 @@ nav.history-tabs ng-if="!onReverse" ) tg-svg( - svg-icon="icon-arrow-down" + svg-icon="icon-arrow-up" ng-if="!onReverse" ) span(