UI: Minor change in notification
This commit is contained in:
parent
fa1a5f086f
commit
8cf1cc3112
@ -42,12 +42,8 @@
|
||||
.mat-mdc-radio-button {
|
||||
flex: 1 1 100%;
|
||||
padding: 4px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||||
border-radius: 6px;
|
||||
|
||||
&.mat-mdc-radio-checked {
|
||||
border-color: map_get($tb-accent, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -112,7 +112,7 @@
|
||||
<mat-form-field>
|
||||
<mat-label translate>notification.time</mat-label>
|
||||
<mat-datetimepicker-toggle [for]="startTimePicker" matPrefix></mat-datetimepicker-toggle>
|
||||
<mat-datetimepicker #startTimePicker type="datetime" openOnFocus="true" timeInterval="1"></mat-datetimepicker>
|
||||
<mat-datetimepicker #startTimePicker type="datetime" openOnFocus="true" [timeInterval]="1"></mat-datetimepicker>
|
||||
<input required matInput fxFlex formControlName="time" [min]="minDate()" [max]="maxDate()" [matDatetimepicker]="startTimePicker">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@ -129,7 +129,13 @@ export class SentNotificationDialogComponent extends
|
||||
this.dialogTitle = 'notification.new-notification';
|
||||
}
|
||||
if (data.request) {
|
||||
this.notificationRequestForm.reset({}, {emitEvent: false});
|
||||
this.notificationRequestForm.patchValue(this.data.request, {emitEvent: false});
|
||||
// eslint-disable-next-line guard-for-in
|
||||
for (const method in this.data.request.template.configuration.deliveryMethodsTemplates) {
|
||||
this.deliveryMethodFormsMap.get(NotificationDeliveryMethod[method])
|
||||
.patchValue(this.data.request.template.configuration.deliveryMethodsTemplates[method]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -173,7 +173,7 @@ export class SentTableConfigResolver implements Resolve<EntityTableConfig<Notifi
|
||||
if (countError === 0) {
|
||||
return '';
|
||||
}
|
||||
return `<div style="border-radius: 12px; height: 24px; line-height: 24px; padding: 0 10px; width: max-content;
|
||||
return `<div style="border-radius: 12px; height: 24px; line-height: 24px; padding: 0 10px; width: max-content; cursor: pointer;
|
||||
background-color: #D12730; color: #fff; font-weight: 500; margin-left: 8px" class="stats">
|
||||
${countError} ${this.translate.instant('notification.fails')} >
|
||||
</div>`;
|
||||
@ -182,8 +182,7 @@ export class SentTableConfigResolver implements Resolve<EntityTableConfig<Notifi
|
||||
private requestStatusStyle(status: NotificationRequestStatus): object {
|
||||
const styleObj = {
|
||||
fontSize: '14px',
|
||||
color: '#198038',
|
||||
cursor: 'pointer'
|
||||
color: '#198038'
|
||||
};
|
||||
switch (status) {
|
||||
case NotificationRequestStatus.SCHEDULED:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user