mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Make tooltip optional in the label component.
This commit is contained in:
parent
b0261970fc
commit
9a27a39f55
2 changed files with 4 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue