diff --git a/app/modules/history/comments/comment.jade b/app/modules/history/comments/comment.jade index 78258e57..447b8bfd 100644 --- a/app/modules/history/comments/comment.jade +++ b/app/modules/history/comments/comment.jade @@ -15,7 +15,7 @@ include ../../../partials/common/components/wysiwyg.jade span.separator - a( href="" - title="COMMENTS.SHOW_HISTORY" + title="{{'COMMENTS.SHOW_HISTORY' | translate}}" ng-click="vm.displayCommentHistory()" ) 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'}} a.toggle-deleted-comment( href="" + title="{{ 'COMMENTS.SHOW_DELETED' | translate }}" ng-click="vm.showDeletedComment()" ng-if="vm.hiddenDeletedComment" ) @@ -84,6 +85,7 @@ include ../../../partials/common/components/wysiwyg.jade ) a.toggle-deleted-comment( href="" + title="{{'COMMENTS.HIDE_DELETED' | translate}}" ng-click="vm.hideDeletedComment()" ng-if="!vm.hiddenDeletedComment" ) @@ -94,6 +96,7 @@ include ../../../partials/common/components/wysiwyg.jade ) a.restore-comment( href="" + title="{{'COMMENTS.RESTORE' | translate}}" ng-click="vm.onRestoreDeletedComment({commentId: vm.comment.id})" tg-loading="vm.editing == vm.comment.id" ) diff --git a/app/modules/history/history-lightbox/comment-history-lightbox.directive.coffee b/app/modules/history/history-lightbox/comment-history-lightbox.directive.coffee index b09c99a0..3fa4b966 100644 --- a/app/modules/history/history-lightbox/comment-history-lightbox.directive.coffee +++ b/app/modules/history/history-lightbox/comment-history-lightbox.directive.coffee @@ -17,8 +17,6 @@ # File: comment.directive.coffee ### -module = angular.module('taigaHistory') - LightboxDisplayHistoricDirective = (lightboxService) -> link = (scope, el, attrs, ctrl) -> ctrl._loadHistoric() @@ -37,4 +35,8 @@ LightboxDisplayHistoricDirective = (lightboxService) -> link: link } -module.directive("tgLbDisplayHistoric", LightboxDisplayHistoricDirective) +LightboxDisplayHistoricDirective.$inject = [ + "lightboxService" +] + +angular.module('taigaHistory').directive("tgLbDisplayHistoric", LightboxDisplayHistoricDirective)