Fixed #4760: Wiki activity hidden by default

stable
Jesús Espino 2017-10-24 17:10:55 +02:00 committed by Alex Hermida
parent 987c1b6c28
commit 9e9b86c4bc
2 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,7 @@ class WikiHistoryController
constructor: (@wikiHistoryService) ->
taiga.defineImmutableProperty @, 'historyEntries', () => return @wikiHistoryService.historyEntries
@.toggle = false
initializeHistoryEntries: (wikiId) ->
if wikiId

View File

@ -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"