summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html')
-rw-r--r--catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html b/catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html
index 6ddbd6169a..d59c44d67f 100644
--- a/catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html
+++ b/catalog-ui/src/app/directives/ellipsis/ellipsis-directive.html
@@ -18,7 +18,8 @@
{{actualText}}
<span class="ellipsis-directive-more-less"
- data-ng-click="collapsed = !collapsed; toggleText()"
- data-ng-hide="ellipsis.length <= maxChars">
- {{collapsed ? "More" : "Less"}}
+ data-ng-click="onMoreLessClick($event)"
+ data-ng-hide="ellipsis.length <= maxChars"
+ data-tests-id="ellipsis-more-less">
+ {{actualText ? (collapsed ? "More" : "Less") : ""}}
</span>