Merge pull request #15232 from surajshetty3416/fixes-and-improvements
UI enhancements
diff --git a/erpnext/public/js/hub/pages/Buying.vue b/erpnext/public/js/hub/pages/Buying.vue
index 57ad469..7c3fc27 100644
--- a/erpnext/public/js/hub/pages/Buying.vue
+++ b/erpnext/public/js/hub/pages/Buying.vue
@@ -14,7 +14,7 @@
>
<div slot="subtitle">
<span>{{item.recent_message.sender}}: </span>
- <span>{{item.recent_message.content}}</span>
+ <span>{{item.recent_message.content | striphtml}}</span>
</div>
</item-list-card>
</div>
diff --git a/erpnext/public/js/hub/pages/Publish.vue b/erpnext/public/js/hub/pages/Publish.vue
index 788d7ba..79da6cb 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"
></notification-message>
- <div class="flex justify-between align-flex-end">
+ <div class="flex justify-between align-flex-end margin-bottom">
<h5>{{ page_title }}</h5>
<button class="btn btn-primary btn-sm publish-items"
diff --git a/erpnext/public/js/hub/vue-plugins.js b/erpnext/public/js/hub/vue-plugins.js
index 7d0619f..e18af0c 100644
--- a/erpnext/public/js/hub/vue-plugins.js
+++ b/erpnext/public/js/hub/vue-plugins.js
@@ -60,3 +60,7 @@
handleImage(el, binding.value);
}
});
+
+Vue.filter('striphtml', function (text) {
+ return strip_html(text);
+});
\ No newline at end of file