Fixed #4760: Wiki activity hidden by default
parent
987c1b6c28
commit
9e9b86c4bc
|
@ -28,6 +28,7 @@ class WikiHistoryController
|
|||
|
||||
constructor: (@wikiHistoryService) ->
|
||||
taiga.defineImmutableProperty @, 'historyEntries', () => return @wikiHistoryService.historyEntries
|
||||
@.toggle = false
|
||||
|
||||
initializeHistoryEntries: (wikiId) ->
|
||||
if wikiId
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue