Skip to content

Commit

Permalink
Merge pull request #150 from takenet/bugfix/268854-add-tooltip-when-t…
Browse files Browse the repository at this point in the history
…esting-unpublished-bot

fix(subheader): add tooltip on test icon when testing unpublished bot
  • Loading branch information
mhnakashima authored Nov 8, 2021
2 parents 6527257 + c94191f commit cfdc194
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
24 changes: 20 additions & 4 deletions src/components/subheaderIcons/SubheaderIconsView.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,25 @@
</li>
<li>
<a ng-if="!$ctrl.enabledTestEdited" ng-click="$ctrl.showBlipChatSidenav()">
<i tooltips tooltip-template="{{'modules.application.detail.test' | translate}}" tooltip-side="bottom" class="icon-lab"></i>
<i
tooltips
tooltip-template="{{'modules.application.detail.test' | translate}}"
tooltip-side="bottom"
class="icon-lab"
>
</i>
</a>
<a ng-if="$ctrl.enabledTestEdited && !$ctrl.applicationStatus" class="toolTipUnpublishedFlow">
<i
tooltips
tooltip-class="medium"
tooltip-template="{{'modules.application.detail.tooltipTextTest' | translate}}"
tooltip-side="bottom left"
class="icon-lab"
>
</i>
</a>
<div ng-if="$ctrl.enabledTestEdited" class="test-details">
<div ng-if="$ctrl.enabledTestEdited && $ctrl.applicationStatus" class="test-details">
<div class="flex items-center">
<dropdown-item
hide-icon="true"
Expand All @@ -44,9 +60,9 @@
item-title="{{$ctrl.itemTitle}}"
>
<ul class="test-details-menu no-style ma0 tl">
<li ng-class="($ctrl.applicationStatus || !$ctrl.isBuilder) ? 'enabled' : 'disabled'">
<li ng-class="enabled">
<img icon-src="publish-bot">
<a ng-click="(!$ctrl.applicationStatus && $ctrl.isBuilder) || $ctrl.showBlipChatSidenav('flow')"
<a ng-click="$ctrl.showBlipChatSidenav('flow')"
tooltips
tooltip-template= "{{$ctrl.infoText}}"
tooltip-hidden="{{!$ctrl.hasTooltip}}"
Expand Down
13 changes: 12 additions & 1 deletion src/components/subheaderIcons/SubheaderIconsView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

.action-icons {
display: inline-flex;

li {
.toolTipUnpublishedFlow {
tooltip {
tip {
left: 1.8rem;
}
}
}
}

}

.test {
Expand Down Expand Up @@ -67,4 +78,4 @@ background: $bp-color-bot;
padding-left: 5px;
}
}
}
}

0 comments on commit cfdc194

Please sign in to comment.