diff --git a/src/router.ts b/src/router.ts index 5aefccd3..50d33bae 100644 --- a/src/router.ts +++ b/src/router.ts @@ -84,7 +84,7 @@ export function createRouter(basePath): VueRouter { name: 'notificationrules', component: () => import(/* webpackChunkName: 'user' */ './views/NotificationRule.vue'), meta: {title: 'NotificationRules', requiresAuth: true} - }, + }, { path: '/notificationhistory', name: 'notificationhistory', diff --git a/src/services/api/notificationHistory.service.ts b/src/services/api/notificationHistory.service.ts index 4826103f..4d15253c 100644 --- a/src/services/api/notificationHistory.service.ts +++ b/src/services/api/notificationHistory.service.ts @@ -6,5 +6,5 @@ export default { params: query } return api.get('/notificationhistory', config) - }, + } } diff --git a/src/store/modules/notificationGroup.store.ts b/src/store/modules/notificationGroup.store.ts index f2967b91..92265c81 100644 --- a/src/store/modules/notificationGroup.store.ts +++ b/src/store/modules/notificationGroup.store.ts @@ -48,7 +48,9 @@ const actions = { params.append('sort-by', (state.pagination.descending ? '-' : '') + state.pagination.sortBy) return NotificationGroupApi.getNotificationGroups(params) - .then(({notificationGroups, total, pageSize}) => commit('SET_NOTIFICATION_GROUP', [notificationGroups, total, pageSize])) + .then(({notificationGroups, total, pageSize}) => + commit('SET_NOTIFICATION_GROUP', [notificationGroups, total, pageSize]) + ) .catch(() => commit('RESET_LOADING')) }, createNotificationGroup({dispatch, commit}, notificationrule) { diff --git a/src/store/modules/notificationHistory.store.ts b/src/store/modules/notificationHistory.store.ts index fd657965..89255f44 100644 --- a/src/store/modules/notificationHistory.store.ts +++ b/src/store/modules/notificationHistory.store.ts @@ -19,7 +19,7 @@ const mutations = { SET_LOADING(state) { state.isLoading = true }, - SET_NOTIFICATION_HISTORY (state, [notificationHistory, total, pageSize]) { + SET_NOTIFICATION_HISTORY(state, [notificationHistory, total, pageSize]) { state.isLoading = false state.notification_history = notificationHistory state.pagination.totalItems = total @@ -52,16 +52,16 @@ const actions = { ) .catch(() => commit('RESET_LOADING')) }, - + setPagination({commit}, pagination) { commit('SET_PAGINATION', pagination) - }, + } } const getters = { pagination: state => { return state.pagination - }, + } } export default { diff --git a/src/store/modules/notificationRule.store.ts b/src/store/modules/notificationRule.store.ts index 8ce3f130..9de5e1cb 100644 --- a/src/store/modules/notificationRule.store.ts +++ b/src/store/modules/notificationRule.store.ts @@ -77,7 +77,7 @@ const actions = { }, updateQuery({commit}, query) { commit('SET_SEARCH_QUERY', query) - }, + } } const getters = {