Skip to content

Commit

Permalink
fix(popover): stringify popover triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Apr 13, 2017
1 parent e71562f commit e934e11
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div uib-popover-template="$ctrl.popoverTemplate"
popover-placement="left"
popover-title="{{$ctrl.policy.policyName}}"
popover-trigger="mouseenter">
popover-trigger="'mouseenter'">
<div>
<strong>Whenever</strong>
{{alarm.statistic}} of <span class="alarm-name">{{alarm.metricName}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h4>Stage: {{stage.name}}</h4>
There is <a uib-popover-template="vm.notificationTooltip" popover-placement="bottom">one notification</a> configured for this pipeline
</div>
<div ng-if="vm.notifications.length > 1" class="small">
There are <a uib-popover-template="vm.notificationTooltip" popover-placement="bottom" popover-trigger="mouseenter">{{vm.notifications.length}} notifications</a> configured for this pipeline</div>
There are <a uib-popover-template="vm.notificationTooltip" popover-placement="bottom" popover-trigger="'mouseenter'">{{vm.notifications.length}} notifications</a> configured for this pipeline</div>
</div>
</div>
<div class="form-group" ng-if="vm.command.notificationEnabled">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = angular
<span is-visible="$ctrl.hasNextScheduled">
<span class="glyphicon glyphicon-time"
popover-placement="left"
popover-trigger="mouseenter"
popover-trigger="'mouseenter'"
ng-mouseenter="$ctrl.updateSchedule()"
uib-popover="Next run: {{$ctrl.nextScheduled | timestamp}} ({{$ctrl.getNextDuration()}})"></span>
</span>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class DataSourceAlertsComponent implements ng.IComponentOptions {
analytics-category="Alerts hovered"
analytics-label="{{$ctrl.analyticsLabel}}"
popover-placement="bottom"
popover-trigger="none"
popover-trigger="'none'"
popover-is-open="$ctrl.displayPopover"
popover-class="no-padding">
<i class="entity-tag fa fa-exclamation-triangle"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EntitySourceComponent implements ng.IComponentOptions {
<dd>
<span uib-popover-template="$ctrl.popoverTemplate"
popover-placement="left"
popover-trigger="mouseenter">
popover-trigger="'mouseenter'">
<span ng-if="$ctrl.executionNotFound">pipeline (not found)</span>
<a ng-if="!$ctrl.executionNotFound && $ctrl.metadata.value.executionType === 'pipeline'"
ui-sref="{{$ctrl.relativePath}}.pipelines.executionDetails.execution({application: $ctrl.metadata.value.application, executionId: $ctrl.metadata.value.executionId, stageId: $ctrl.metadata.value.stageId})">
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/modules/core/entityTag/entityUiTags.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class EntityUiTagsComponent implements ng.IComponentOptions {
ng-mouseleave="$ctrl.hidePopover(true)">
<span uib-popover-template="$ctrl.popoverTemplate"
popover-placement="auto top"
popover-trigger="none"
popover-trigger="'none'"
analytics-on="mouseenter"
analytics-category="Notice hovered"
analytics-label="{{$ctrl.alertAnalyticsLabel}}"
Expand All @@ -169,7 +169,7 @@ class EntityUiTagsComponent implements ng.IComponentOptions {
ng-mouseleave="$ctrl.hidePopover(true)">
<span uib-popover-template="$ctrl.popoverTemplate"
popover-placement="auto top"
popover-trigger="none"
popover-trigger="'none'"
analytics-on="mouseenter"
analytics-category="Notice hovered"
analytics-label="{{$ctrl.noticeAnalyticsLabel}}"
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/modules/core/help/helpField.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class HelpFieldComponent implements ng.IComponentOptions {
ng-mouseleave="$ctrl.hidePopover(true)"
popover-placement="{{$ctrl.contents.placement}}"
popover-is-open="$ctrl.displayPopover"
popover-trigger="none"
popover-trigger="'none'"
ng-bind-html="$ctrl.label">
</a>
</div>
Expand All @@ -117,7 +117,7 @@ class HelpFieldComponent implements ng.IComponentOptions {
ng-mouseleave="$ctrl.hidePopover(true)"
popover-placement="{{$ctrl.contents.placement}}"
popover-is-open="$ctrl.displayPopover"
popover-trigger="none">
popover-trigger="'none'">
<span class="small glyphicon glyphicon-question-sign"></span>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<g uib-popover-template="warningsPopover"
popover-placement="auto"
popover-enable="stage.hasWarnings"
popover-trigger="mouseenter">
popover-trigger="'mouseenter'">
<circle ng-attr-r="{{::nodeRadius}}"
class="clickable stage-type-{{::stage.masterStage.type.toLowerCase()}} execution-marker execution-marker-{{::stage.status.toLowerCase()}}"
ng-class="{active: stage.isActive}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h4>Stages</h4>
ng-if="pipelineConfigurerCtrl.validations.hasWarnings"
uib-popover-template="pipelineConfigurerCtrl.warningsPopover"
popover-placement="left-bottom"
popover-trigger="mouseenter">
popover-trigger="'mouseenter'">
<i class="fa fa-exclamation-triangle" style="font-size: 125%;"></i>
</button>
<span ng-if="viewState.saveError" class="alert alert-danger">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ng-mouseleave="$ctrl.hidePopover(i, true)"
popover-placement="top"
popover-is-open="$ctrl.popoverOpen[i]"
popover-trigger="none">
popover-trigger="'none'">
<circle ng-attr-r="{{dot.r}}" ng-attr-cx="{{dot.cx}}" ng-attr-cy="{{dot.cy}}" class="score-fill-{{dot.score}}"></circle>
</g>
</g>
Expand Down

0 comments on commit e934e11

Please sign in to comment.