Skip to content

Commit

Permalink
chore: fix format of files
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Apr 18, 2024
1 parent c3c19cf commit 66dd608
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/services/api/notificationHistory.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export default {
params: query
}
return api.get('/notificationhistory', config)
},
}
}
4 changes: 3 additions & 1 deletion src/store/modules/notificationGroup.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions src/store/modules/notificationHistory.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/notificationRule.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const actions = {
},
updateQuery({commit}, query) {
commit('SET_SEARCH_QUERY', query)
},
}
}

const getters = {
Expand Down

0 comments on commit 66dd608

Please sign in to comment.