commit
8ced85f696
|
@ -140,7 +140,7 @@
|
|||
<p>{{ reminder.label }}</p>
|
||||
</ion-label>
|
||||
<ion-button fill="clear" (click)="cancelNotification(reminder.id, $event)" [attr.aria-label]="'core.delete' | translate"
|
||||
slot="end" *ngIf="reminder.timestamp > currentTime">
|
||||
slot="end">
|
||||
<ion-icon name="fas-trash" color="danger" slot="icon-only" aria-hidden="true"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-item>
|
||||
|
|
|
@ -248,7 +248,8 @@ export const CALENDAR_SITE_SCHEMA: CoreSiteSchema = {
|
|||
|
||||
return;
|
||||
} else {
|
||||
record.time = events[record.eventid].timestart - record.time;
|
||||
// Remove seconds from the old reminder, it could include seconds by mistake.
|
||||
record.time = events[record.eventid].timestart - Math.floor(record.time / 60) * 60;
|
||||
}
|
||||
|
||||
return db.insertRecord(REMINDERS_TABLE, record);
|
||||
|
|
Loading…
Reference in New Issue