This commit is contained in:
2020-07-29 17:55:34 +00:00
parent d647adfa54
commit a1d0b7b5df
3 changed files with 174 additions and 28 deletions

View File

@@ -278,7 +278,18 @@ export default {
source.slice(start + Math.abs(delCount))
);
},
///////////////////////////////
// Format tags for display
//
//
// @param {String} tags raw from server
// @return {string} A new string with the tags formatted or an empty string if no tags
formatTags: function(tags) {
if (tags && tags.length > 0) {
return tags.join(", ");
}
return "";
},
///////////////////////////////
// ICON FOR *ALL* OBJECT TYPES
//(used for search results and event log / history)