DEV: Enable and fix the 'require-iframe-title' lint

This commit is contained in:
Kane York 2020-03-26 11:31:02 -07:00 committed by Kane York
parent a17fa222af
commit 07dc8d20c4
3 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@ module.exports = {
"no-unnecessary-component-helper": true,
"no-unused-block-params": true,
"no-unbound": true,
"require-iframe-title": true,
"self-closing-void-elements": true,
"simple-unless": true,
"style-concatenation": true,

View File

@ -50,7 +50,7 @@
{{#if htmlEmpty}}
<p>{{i18n 'admin.email.no_result'}}</p>
{{else}}
<iframe srcdoc={{model.html_content}} />
<iframe title={{i18n 'admin.email.html_preview'}} srcdoc={{model.html_content}} />
{{/if}}
{{else}}
<pre>{{html-safe model.text_content}}</pre>

View File

@ -3907,6 +3907,7 @@ en:
format: "Format"
html: "html"
text: "text"
html_preview: "Email Content Preview"
last_seen_user: "Last Seen User:"
no_result: "No results found for summary."
reply_key: "Reply Key"