diff --git a/app/modules/wiki/history/wiki-history.controller.coffee b/app/modules/wiki/history/wiki-history.controller.coffee index 45f7b983..3caf1b36 100644 --- a/app/modules/wiki/history/wiki-history.controller.coffee +++ b/app/modules/wiki/history/wiki-history.controller.coffee @@ -28,6 +28,7 @@ class WikiHistoryController constructor: (@wikiHistoryService) -> taiga.defineImmutableProperty @, 'historyEntries', () => return @wikiHistoryService.historyEntries + @.toggle = false initializeHistoryEntries: (wikiId) -> if wikiId diff --git a/app/modules/wiki/history/wiki-history.jade b/app/modules/wiki/history/wiki-history.jade index 131df94b..b093fbe6 100644 --- a/app/modules/wiki/history/wiki-history.jade +++ b/app/modules/wiki/history/wiki-history.jade @@ -1,11 +1,13 @@ nav.history-tabs(ng-if="vm.historyEntries.count()>0") - a.history-tab.active( + a.history-tab( + ng-class="{active: vm.toggle}" + ng-click="vm.toggle = !vm.toggle" href="" title="{{ACTIVITY.TITLE}}" translate="ACTIVITY.TITLE" ) -section.wiki-history(ng-if="vm.historyEntries.count()>0") +section.wiki-history(ng-if="vm.historyEntries.count()>0 && vm.toggle") tg-wiki-history-entry.wiki-history-entry( tg-repeat="historyEntry in vm.historyEntries" history-entry="historyEntry"