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