Skip to content

Commit

Permalink
fix: admin creating new mail template, fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Feb 10, 2024
1 parent 0a1379f commit 759ab95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@
<template #column-froshTemplateMail="{ item }">
<sw-label
appearance="circle"
:variant="item.extensions.froshTemplateMail.subject ? 'success' : 'warning'"
:variant="item.extensions?.froshTemplateMail.subject ? 'success' : 'warning'"
v-tooltip="getFroshTooltip('subject', item.extensions.froshTemplateMail.subject)"
>
<sw-icon name="regular-exclamation-s" small />
</sw-label>
<sw-label
appearance="circle"
:variant="item.extensions.froshTemplateMail.plain ? 'success' : 'warning'"
:variant="item.extensions?.froshTemplateMail.plain ? 'success' : 'warning'"
v-tooltip="getFroshTooltip('plain', item.extensions.froshTemplateMail.plain)"
>
<sw-icon name="regular-align-left" small />
</sw-label>
<sw-label
appearance="circle"
:variant="item.extensions.froshTemplateMail.html ? 'success' : 'warning'"
:variant="item.extensions?.froshTemplateMail.html ? 'success' : 'warning'"
v-tooltip="getFroshTooltip('html', item.extensions.froshTemplateMail.html)"
>
<sw-icon name="regular-code" small />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% block sw_mail_template_options_form_subject_field %}
{% parent %}
<sw-label
v-if="mailTemplate.extensions.froshTemplateMail"
appearance="circle"
:variant="mailTemplate.extensions.froshTemplateMail.subject ? 'success' : 'warning'"
v-tooltip="getFroshTooltip('subject', mailTemplate.extensions.froshTemplateMail.subject)"
Expand All @@ -12,6 +13,7 @@
{% block sw_mail_template_mail_text_form_content_plain_field %}
{% parent %}
<sw-label
v-if="mailTemplate.extensions.froshTemplateMail"
appearance="circle"
:variant="mailTemplate.extensions.froshTemplateMail.plain ? 'success' : 'warning'"
v-tooltip="getFroshTooltip('plain', mailTemplate.extensions.froshTemplateMail.plain)"
Expand All @@ -23,6 +25,7 @@
{% block sw_mail_template_mail_text_form_content_html_field %}
{% parent %}
<sw-label
v-if="mailTemplate.extensions.froshTemplateMail"
appearance="circle"
:variant="mailTemplate.extensions.froshTemplateMail.html ? 'success' : 'warning'"
v-tooltip="getFroshTooltip('html', mailTemplate.extensions.froshTemplateMail.html)"
Expand Down

0 comments on commit 759ab95

Please sign in to comment.