Skip to content

Commit a6754af

Browse files
author
Jonathan M. Tran
committed
fix(notification-list): check to determine the presence of redirect prop
Defaulting to false since org.jasig.portlet.notice.NotificationAction defaults to false.
1 parent a11008d commit a6754af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

@uportal/notification-list/src/components/NotificationList.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ export default {
7171
},
7272
methods: {
7373
async gotoAction(action) {
74-
if (action.redirect) {
74+
let redirect = action.redirect ? action.redirect : false;
75+
76+
if (typeof redirect === 'string') {
77+
redirect = redirect === 'true';
78+
}
79+
80+
if (redirect) {
7581
const form = document.createElement('form');
7682
form.action = action.apiUrl;
7783
form.method = 'POST';

0 commit comments

Comments
 (0)