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

This reverts commit f1cb89b249bdea3faf4b6d6ccf248f64b2056040.
This commit is contained in:
Niels Lyngsø
2019-09-13 13:46:15 +02:00
committed by Shannon
parent 93df9c4dfd
commit 2c18a125c6
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
/**
* @ngdoc filter
* @name umbraco.filters.filter:advancedTruncate
* @namespace advancedTruncateFilter
* @name umbraco.filters.filter:truncate
* @namespace truncateFilter
*
* 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('advancedTruncate',
angular.module("umbraco.filters").filter('truncate',
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 | advancedTruncate:true:36 }}
{{ pasteItem.name | truncate:true:36 }}
</span>
</a>
</li>