fix(react): use ctrl directive in WidgetTitle component [EE-2118] (#6181)

pull/6182/head
Marcelo Rydel 2021-11-30 14:22:39 -07:00 committed by GitHub
parent 2a384d4c64
commit fa44a62c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@ export const rdWidgetTitle = {
template: `
<div class="widget-header">
<div class="row">
<span ng-class="classes" class="pull-left">
<i class="fa" ng-class="icon"></i>
<span ng-transclude="title">{{ titleText }}</span>
<span ng-class="$ctrl.classes" class="pull-left">
<i class="fa" ng-class="$ctrl.icon"></i>
<span ng-transclude="title">{{ $ctrl.titleText }}</span>
</span>
<span ng-class="classes" class="pull-right" ng-transclude></span>
<span ng-class="$ctrl.classes" class="pull-right" ng-transclude></span>
</div>
</div>
`,