diff --git a/frontend/src/components/system-user-notification-item.js b/frontend/src/components/system-user-notification-item.js index e55989f353..0d95f97f91 100644 --- a/frontend/src/components/system-user-notification-item.js +++ b/frontend/src/components/system-user-notification-item.js @@ -13,7 +13,7 @@ class SystemUserNotificationItem extends React.Component { } close = () => { - this.setState({isClosed: true}); + this.setState({ isClosed: true }); notificationAPI.setSysUserNotificationToSeen(this.props.notificationID); }; @@ -24,9 +24,8 @@ class SystemUserNotificationItem extends React.Component { return (
-

- +

+
); } diff --git a/frontend/src/utils/notification-api.js b/frontend/src/utils/notification-api.js index ac121c3772..caf0ce9781 100644 --- a/frontend/src/utils/notification-api.js +++ b/frontend/src/utils/notification-api.js @@ -8,7 +8,7 @@ class NotificationAPI { this.server = server; this.username = username; this.password = password; - this.token = token; //none + this.token = token; if (this.token && this.server) { this.req = axios.create({ baseURL: this.server, @@ -37,7 +37,7 @@ class NotificationAPI { _sendPostRequest(url, form) { if (form.getHeaders) { return this.req.post(url, form, { - headers:form.getHeaders() + headers: form.getHeaders() }); } else { return this.req.post(url, form); @@ -50,8 +50,8 @@ class NotificationAPI { } - setSysUserNotificationToSeen(notificationID){ - const url = this.server + 'api/v2.1/sys-user-notifications/'+notificationID+'/seen/'; + setSysUserNotificationToSeen(notificationID) { + const url = this.server + 'api/v2.1/sys-user-notifications/' + notificationID + '/seen/'; return this.req.put(url); }