MOBILE-4081 notifications: Display time when clicking push
parent
a61fab5f70
commit
8c22079e66
|
@ -36,7 +36,7 @@
|
|||
<core-format-text [text]="subject" contextLevel="system" [contextInstanceId]="0" [wsNotFiltered]="true">
|
||||
</core-format-text>
|
||||
</p>
|
||||
<p>{{ timecreated | coreTimeAgo }}<ng-container *ngIf="userIdFrom > 0"> · {{
|
||||
<p *ngIf="timecreated > 0">{{ timecreated | coreTimeAgo }}<ng-container *ngIf="userIdFrom > 0"> · {{
|
||||
userFromFullName }}</ng-container>
|
||||
</p>
|
||||
</ion-label>
|
||||
|
|
|
@ -91,6 +91,7 @@ export class AddonNotificationsNotificationPage implements OnInit, OnDestroy {
|
|||
this.userIdFrom = notification.userfromid ? Number(notification.userfromid) : -1;
|
||||
this.profileImageUrlFrom = notification.senderImage;
|
||||
this.userFromFullName = notification.userfromfullname;
|
||||
this.timecreated = Number(notification.date ?? 0);
|
||||
}
|
||||
|
||||
await this.loadActions(notification);
|
||||
|
|
|
@ -141,4 +141,5 @@ export type AddonNotificationsNotificationData = CorePushNotificationsNotificati
|
|||
contexturl?: string; // URL related to the notification.
|
||||
savedmessageid?: number; // Notification ID (optional).
|
||||
id?: number; // Notification ID (optional).
|
||||
date?: string; // Notification date (timestamp). E.g. "1669204700".
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue