FIX: any global notice text can contain HTML (#8655)

This commit is contained in:
Joffrey JAFFEUX
2020-01-02 19:58:27 +01:00
committed by GitHub
parent 98853b217f
commit ec5418fbb4
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ export default Component.extend({
) { ) {
notices.push( notices.push(
Notice.create({ Notice.create({
text: this.siteSettings.global_notice.htmlSafe(), text: this.siteSettings.global_notice,
id: "alert-global-notice" id: "alert-global-notice"
}) })
); );

View File

@ -4,7 +4,7 @@
{{#if notice.options.html}} {{#if notice.options.html}}
{{{notice.options.html}}} {{{notice.options.html}}}
{{/if}} {{/if}}
<span class="text">{{notice.text}}</span> <span class="text">{{{notice.text}}}</span>
{{#if notice.options.dismissable}} {{#if notice.options.dismissable}}
{{d-button {{d-button