Make tooltip optional in the label component.

This commit is contained in:
Paulo Reis 2018-08-08 11:01:20 +01:00
parent b0261970fc
commit 9a27a39f55
2 changed files with 4 additions and 0 deletions

View file

@ -77,6 +77,7 @@ script(type="text/ng-template", id="historyLabelTpl")
tooltip-append-to-body="true"
tooltip-template="'historyLabelTooltipTpl'"
tooltip-placement="left"
tooltip-enable="$ctrl.showTooltip"
)
i.fa.fa-tag
|  {{ $ctrl.labelText }}

View file

@ -3,6 +3,8 @@ define [
], (App) ->
historyLabelController = ($scope, $element, $attrs, $filter, _) ->
ctrl = @
ctrl.$onInit = () ->
ctrl.showTooltip ?= true
return
App.component "historyLabel", {
@ -12,6 +14,7 @@ define [
labelCreationDateTime: "<"
isOwnedByCurrentUser: "<"
onLabelDelete: "&"
showTooltip: "<?"
controller: historyLabelController
templateUrl: "historyLabelTpl"
}