Merge pull request #11781 from rusikv/enhancement/microsoft-teams-notification
Microsoft Teams notification preview improvements
This commit is contained in:
commit
52e4ae5a0a
@ -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>
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -366,6 +366,7 @@ interface SlackDeliveryMethodNotificationTemplate {
|
|||||||
interface MicrosoftTeamsDeliveryMethodNotificationTemplate {
|
interface MicrosoftTeamsDeliveryMethodNotificationTemplate {
|
||||||
subject?: string;
|
subject?: string;
|
||||||
button: NotificationButtonConfig;
|
button: NotificationButtonConfig;
|
||||||
|
themeColor?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MobileDeliveryMethodNotificationTemplate {
|
interface MobileDeliveryMethodNotificationTemplate {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user