Fix tg-4674: Show edited comment history
parent
4e53c1e52f
commit
451b9f979c
|
@ -15,7 +15,7 @@ include ../../../partials/common/components/wysiwyg.jade
|
||||||
span.separator -
|
span.separator -
|
||||||
a(
|
a(
|
||||||
href=""
|
href=""
|
||||||
title="COMMENTS.SHOW_HISTORY"
|
title="{{'COMMENTS.SHOW_HISTORY' | translate}}"
|
||||||
ng-click="vm.displayCommentHistory()"
|
ng-click="vm.displayCommentHistory()"
|
||||||
)
|
)
|
||||||
span(translate="COMMENTS.SHOW_HISTORY")
|
span(translate="COMMENTS.SHOW_HISTORY")
|
||||||
|
@ -74,6 +74,7 @@ include ../../../partials/common/components/wysiwyg.jade
|
||||||
span - {{vm.comment.delete_comment_date | momentFormat:'DD MMM YYYY HH:mm'}}
|
span - {{vm.comment.delete_comment_date | momentFormat:'DD MMM YYYY HH:mm'}}
|
||||||
a.toggle-deleted-comment(
|
a.toggle-deleted-comment(
|
||||||
href=""
|
href=""
|
||||||
|
title="{{ 'COMMENTS.SHOW_DELETED' | translate }}"
|
||||||
ng-click="vm.showDeletedComment()"
|
ng-click="vm.showDeletedComment()"
|
||||||
ng-if="vm.hiddenDeletedComment"
|
ng-if="vm.hiddenDeletedComment"
|
||||||
)
|
)
|
||||||
|
@ -84,6 +85,7 @@ include ../../../partials/common/components/wysiwyg.jade
|
||||||
)
|
)
|
||||||
a.toggle-deleted-comment(
|
a.toggle-deleted-comment(
|
||||||
href=""
|
href=""
|
||||||
|
title="{{'COMMENTS.HIDE_DELETED' | translate}}"
|
||||||
ng-click="vm.hideDeletedComment()"
|
ng-click="vm.hideDeletedComment()"
|
||||||
ng-if="!vm.hiddenDeletedComment"
|
ng-if="!vm.hiddenDeletedComment"
|
||||||
)
|
)
|
||||||
|
@ -94,6 +96,7 @@ include ../../../partials/common/components/wysiwyg.jade
|
||||||
)
|
)
|
||||||
a.restore-comment(
|
a.restore-comment(
|
||||||
href=""
|
href=""
|
||||||
|
title="{{'COMMENTS.RESTORE' | translate}}"
|
||||||
ng-click="vm.onRestoreDeletedComment({commentId: vm.comment.id})"
|
ng-click="vm.onRestoreDeletedComment({commentId: vm.comment.id})"
|
||||||
tg-loading="vm.editing == vm.comment.id"
|
tg-loading="vm.editing == vm.comment.id"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
# File: comment.directive.coffee
|
# File: comment.directive.coffee
|
||||||
###
|
###
|
||||||
|
|
||||||
module = angular.module('taigaHistory')
|
|
||||||
|
|
||||||
LightboxDisplayHistoricDirective = (lightboxService) ->
|
LightboxDisplayHistoricDirective = (lightboxService) ->
|
||||||
link = (scope, el, attrs, ctrl) ->
|
link = (scope, el, attrs, ctrl) ->
|
||||||
ctrl._loadHistoric()
|
ctrl._loadHistoric()
|
||||||
|
@ -37,4 +35,8 @@ LightboxDisplayHistoricDirective = (lightboxService) ->
|
||||||
link: link
|
link: link
|
||||||
}
|
}
|
||||||
|
|
||||||
module.directive("tgLbDisplayHistoric", LightboxDisplayHistoricDirective)
|
LightboxDisplayHistoricDirective.$inject = [
|
||||||
|
"lightboxService"
|
||||||
|
]
|
||||||
|
|
||||||
|
angular.module('taigaHistory').directive("tgLbDisplayHistoric", LightboxDisplayHistoricDirective)
|
||||||
|
|
Loading…
Reference in New Issue