Skip to content

Commit

Permalink
fix($translate): limit sce strategy to modal
Browse files Browse the repository at this point in the history
This commit improves the credit note modal with the sce translate
strategy.  Note that $translate must be version 2.17.0 or above.
  • Loading branch information
jniles committed Feb 23, 2018
1 parent 3e66d00 commit 96e6dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function translateConfig($translateProvider) {
suffix : '.json',
});

$translateProvider.useSanitizeValueStrategy('sce');
$translateProvider.useSanitizeValueStrategy('escape');

$translateProvider.preferredLanguage('fr');
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/modules/invoices/registry/modalCreditNote.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="modal-body">
<div class="alert alert-warning">
<i class="fa fa-exclamation-triangle"></i>
<span translate translate-values="ModalCtrl.alertI18nValues">PATIENT_INVOICE.ALERT_CREDIT_NOTE</span>
<span translate translate-values="ModalCtrl.alertI18nValues" translate-sanitize-strategy="'sce'">PATIENT_INVOICE.ALERT_CREDIT_NOTE</span>
</div>

<!-- invoice metadata -->
Expand Down

0 comments on commit 96e6dd0

Please sign in to comment.