From 49c37d5a8e41b0d084a7f2f5164b291af4ebe484 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 27 Aug 2018 20:31:29 +0530 Subject: [PATCH 1/2] Add strip html filter --- erpnext/public/js/hub/pages/Buying.vue | 2 +- erpnext/public/js/hub/vue-plugins.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/hub/pages/Buying.vue b/erpnext/public/js/hub/pages/Buying.vue index 57ad46901f..7c3fc27bbd 100644 --- a/erpnext/public/js/hub/pages/Buying.vue +++ b/erpnext/public/js/hub/pages/Buying.vue @@ -14,7 +14,7 @@ >
{{item.recent_message.sender}}: - {{item.recent_message.content}} + {{item.recent_message.content | striphtml}}
diff --git a/erpnext/public/js/hub/vue-plugins.js b/erpnext/public/js/hub/vue-plugins.js index 7d0619f699..e18af0c428 100644 --- a/erpnext/public/js/hub/vue-plugins.js +++ b/erpnext/public/js/hub/vue-plugins.js @@ -60,3 +60,7 @@ Vue.directive('img-src', { handleImage(el, binding.value); } }); + +Vue.filter('striphtml', function (text) { + return strip_html(text); +}); \ No newline at end of file From ec12b34a79526745c1081f8b83138301bfac95f1 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 27 Aug 2018 20:37:06 +0530 Subject: [PATCH 2/2] Add margin below publish area --- erpnext/public/js/hub/pages/Publish.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/hub/pages/Publish.vue b/erpnext/public/js/hub/pages/Publish.vue index 788d7ba69a..79da6cb5cc 100644 --- a/erpnext/public/js/hub/pages/Publish.vue +++ b/erpnext/public/js/hub/pages/Publish.vue @@ -9,7 +9,7 @@ @remove-message="clear_last_sync_message" > -
+
{{ page_title }}