Merge pull request #11781 from rusikv/enhancement/microsoft-teams-notification

Microsoft Teams notification preview improvements
This commit is contained in:
Igor Kulikov 2024-11-01 18:43:06 +02:00 committed by GitHub
commit 52e4ae5a0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -230,9 +230,10 @@
<tb-icon class="tb-mat-18">mdi:microsoft-teams</tb-icon> <tb-icon class="tb-mat-18">mdi:microsoft-teams</tb-icon>
<div class="tb-form-panel-title" translate>notification.delivery-method.microsoft-teams-preview</div> <div class="tb-form-panel-title" translate>notification.delivery-method.microsoft-teams-preview</div>
</div> </div>
<div class="notification-content mini"> <div class="notification-content mini" [style.background-color]="preview.processedTemplates.MICROSOFT_TEAMS?.themeColor">
<div class="subject">{{ preview.processedTemplates.MICROSOFT_TEAMS.subject }}</div> <div class="subject">{{ preview.processedTemplates.MICROSOFT_TEAMS.subject }}</div>
{{ preview.processedTemplates.MICROSOFT_TEAMS.body }} {{ preview.processedTemplates.MICROSOFT_TEAMS.body }}
<button mat-raised-button>{{ preview.processedTemplates.MICROSOFT_TEAMS.button.text }}</button>
</div> </div>
</section> </section>
</div> </div>

View File

@ -190,6 +190,8 @@
&.mini { &.mini {
font-size: 12px; font-size: 12px;
line-height: 1.25; line-height: 1.25;
justify-content: start;
gap: 5px;
.subject { .subject {
font-size: 14px; font-size: 14px;

View File

@ -366,6 +366,7 @@ interface SlackDeliveryMethodNotificationTemplate {
interface MicrosoftTeamsDeliveryMethodNotificationTemplate { interface MicrosoftTeamsDeliveryMethodNotificationTemplate {
subject?: string; subject?: string;
button: NotificationButtonConfig; button: NotificationButtonConfig;
themeColor?: string;
} }
interface MobileDeliveryMethodNotificationTemplate { interface MobileDeliveryMethodNotificationTemplate {