Renamed angular filter so it doesn't collide with the "truncate" one in Forms.

This commit is contained in:
elitsa
2019-09-13 12:03:33 +02:00
committed by Shannon
parent 8a2661c966
commit 93df9c4dfd
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
/**
* @ngdoc filter
* @name umbraco.filters.filter:truncate
* @namespace truncateFilter
* @name umbraco.filters.filter:advancedTruncate
* @namespace advancedTruncateFilter
*
* param {any} wordwise if true, the string will be cut after last fully displayed word.
* param {any} max max length of the outputtet string
@@ -10,7 +10,7 @@
* @description
* Limits the length of a string, if a cut happens only the string will be appended with three dots to indicate that more is available.
*/
angular.module("umbraco.filters").filter('truncate',
angular.module("umbraco.filters").filter('advancedTruncate',
function () {
return function (value, wordwise, max, tail) {
if (!value) return '';

View File

@@ -24,7 +24,7 @@
<a class="umb-card-grid-item" href="" title="{{ pasteItem.name }}">
<span>
<i class="{{ pasteItem.icon }}"></i>
{{ pasteItem.name | truncate:true:36 }}
{{ pasteItem.name | advancedTruncate:true:36 }}
</span>
</a>
</li>