-
Type
+
Source
{{ value.procedure_type }}
@@ -323,7 +323,10 @@ export default {
return 'fab fa-python'
if (this.value.procedure_type === 'config')
- return 'fas fa-rectangle-list'
+ return 'fas fa-file'
+
+ if (this.value.procedure_type === 'db')
+ return 'fas fa-database'
return this.defaultIconClass
},
diff --git a/platypush/backend/http/webapp/src/utils/Text.vue b/platypush/backend/http/webapp/src/utils/Text.vue
index 67dfd9d01b..c87ebde287 100644
--- a/platypush/backend/http/webapp/src/utils/Text.vue
+++ b/platypush/backend/http/webapp/src/utils/Text.vue
@@ -37,6 +37,16 @@ export default {
formatNumber(number) {
return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
},
+
+ escapeHTML(value) {
+ return value
+ ?.toString?.()
+ ?.replace?.(/&/g, "&")
+ ?.replace?.(//g, ">")
+ ?.replace?.(/"/g, """)
+ ?.replace?.(/'/g, "'") || ''
+ },
},
}