VRFS-1875 fix action button for RSVP notification
This commit is contained in:
parent
4872c037ad
commit
627a403009
|
|
@ -364,7 +364,11 @@
|
|||
linkSessionInfoNotification(payload, $notification, $btnNotificationAction);
|
||||
}
|
||||
else if (type === context.JK.MessageType.SCHEDULED_SESSION_RSVP) {
|
||||
linkSessionInfoNotification(payload, $notification, $btnNotificationAction);
|
||||
var $action_btn = $notification.find($btnNotificationAction);
|
||||
$action_btn.text('MANAGE RSVP');
|
||||
$action_btn.click(function() {
|
||||
context.location = "/client#/account/sessionDetail/" + payload.session_id;
|
||||
});
|
||||
}
|
||||
else if (type === context.JK.MessageType.SCHEDULED_SESSION_RSVP_APPROVED) {
|
||||
linkSessionInfoNotification(payload, $notification, $btnNotificationAction);
|
||||
|
|
@ -827,10 +831,9 @@
|
|||
"icon_url": context.JK.resolveAvatarUrl(payload.photo_url)
|
||||
}, [{
|
||||
id: "btn-view-profile",
|
||||
text: "View Profile",
|
||||
text: "Manage RSVP",
|
||||
"layout-action": "close",
|
||||
href: JK.root_url + "/client#/profile/" + payload.user_id,
|
||||
rel: "external",
|
||||
href: "/client#/account/sessionDetail/" + payload.session_id,
|
||||
"class": "button-orange"
|
||||
}]
|
||||
);
|
||||
|
|
|
|||
|
|
@ -21,8 +21,12 @@
|
|||
if (response) {
|
||||
$('.session-name', $screen).html(response.name);
|
||||
|
||||
var timestamp = new Date(response.scheduled_start).toDateString() + ', ' +
|
||||
context.JK.formatUtcTime(new Date(response.scheduled_start), false);
|
||||
var timestamp = "Date and time TBD";
|
||||
|
||||
if (response.scheduled_start) {
|
||||
timestamp = new Date(response.scheduled_start).toDateString() + ', ' +
|
||||
context.JK.formatUtcTime(new Date(response.scheduled_start), false);
|
||||
}
|
||||
|
||||
$('.scheduled-start', $screen).html(timestamp);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue