diff --git a/app/javascript/vue/protocol/modals/reorderable_items_modal.vue b/app/javascript/vue/protocol/modals/reorderable_items_modal.vue index 99aa89014..ef4b9b85a 100644 --- a/app/javascript/vue/protocol/modals/reorderable_items_modal.vue +++ b/app/javascript/vue/protocol/modals/reorderable_items_modal.vue @@ -24,7 +24,7 @@ {{ index + 1 }} {{ item.attributes.name }} - {{ item.attributes.placeholder }} + {{ getTitle(item) }} @@ -73,6 +73,12 @@ this.$nextTick(() => { $(this.$refs.modal).modal('hide'); }); + }, + getTitle(item) { + let $item_html = $(item.attributes.text); + $item_html.remove('table, img'); + let str = $item_html.text().trim(); + return str.length > 56 ? str.slice(0, 56) + "..." : str; } } }