fix ampersand problem using ng-bind-html

This commit is contained in:
Eduardo
2020-03-01 17:30:43 -03:00
parent 83065a798e
commit 64d83bfc4d
3 changed files with 3 additions and 4 deletions

View File

@@ -19,8 +19,7 @@
{{ orderCycle.producers.length }}
= t('.suppliers')
%span{ ng: { hide: 'orderCycle.producers.length > 3', bind: 'orderCycle.producerNames' } }
%td.coordinator{ ng: { show: 'columns.coordinator.visible' } }
{{ orderCycle.coordinator.name }}
%td.coordinator{ ng: { show: 'columns.coordinator.visible', bind: { html: 'orderCycle.coordinator.name'} } }
%td.shops{ ng: { show: 'columns.shops.visible' } }
%span{'ofn-with-tip' => '{{ orderCycle.shopNames }}', ng: { show: 'orderCycle.shops.length > 3' } }
{{ orderCycle.shops.length }}

View File

@@ -13,7 +13,7 @@
%th.hide=t('admin.variant_overrides.index.hide')
%tbody{ ng: { repeat: 'product in filteredProducts | limitTo:productLimit' } }
%tr{ id: "v_{{variant.id}}", ng: { repeat: 'variant in product.variants | inventoryVariants:hub_id:views' } }
%td.producer{ ng: { bind: '::producersByID[product.producer_id].name'} }
%td.producer{ ng: { bind: { html: '::producersByID[product.producer_id].name'} } }
%td.product{ ng: { bind: '::product.name'} }
%td.variant
%span{ ng: { bind: '::variant.display_name || ""'} }

View File

@@ -1,5 +1,5 @@
%tr.product.even
%td.producer{ ng: { show: 'columns.producer.visible', bind: '::producersByID[product.producer_id].name'} }
%td.producer{ ng: { show: 'columns.producer.visible', bind: { html: '::producersByID[product.producer_id].name'} } }
%td.product{ ng: { show: 'columns.product.visible', bind: '::product.name'} }
%td.sku{ ng: { show: 'columns.sku.visible' } }
%td.price{ ng: { show: 'columns.price.visible' } }