Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <[email protected]>
  • Loading branch information
dartcafe committed May 26, 2024
1 parent dd9a707 commit 4540e5c
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/js/components/Base/modules/ConfigBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ export default {
display: flex;
flex-direction: column;
padding-left: 24px;
// label {
// margin: 4px 0;
// }
}
}
Expand Down
1 change: 0 additions & 1 deletion src/js/components/VoteTable/VoteColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export default {
&:hover {
background-color: var(--color-background-dark);
// box-shadow: 3px 3px 9px var(--color-background-darker);
}
&.locked:hover {
Expand Down
1 change: 0 additions & 1 deletion src/js/components/VoteTable/VoteTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export default {
justify-content: center;
.user-actions {
// display: none;
visibility: hidden;
}
Expand Down
8 changes: 0 additions & 8 deletions src/js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ import SideBarCombo from './views/SideBarCombo.vue'
import Navigation from './views/Navigation.vue'
import Combo from './views/Combo.vue'

// Dynamic loading
// const List = () => import('./views/PollList.vue')
// const Administration = () => import('./views/Administration.vue')
// const NotFound = () => import('./views/NotFound.vue')
// const SideBarCombo = () => import('./views/SideBarCombo.vue')
// const Navigation = () => import('./views/Navigation.vue')
// const Combo = () => import('./views/Combo.vue')

Vue.use(Router)

/**
Expand Down
3 changes: 2 additions & 1 deletion src/js/store/modules/acl.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const actions = {
} else {
response = await UserSettingsAPI.getAcl()
}
// context.commit('reset')
context.commit('set', { acl: response.data.acl })
} catch (error) {
if (error?.code === 'ERR_CANCELED') return
Expand All @@ -94,7 +93,9 @@ const actions = {
// TODO: for some reason unauthorized users first get the root route resulting in a 401
// and after that the publicVote route is called as next route
// therefore we just debug the error and reset the acl

Logger.debug('getAcl failed', error)
context.commit('reset')
} else {
throw error
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/store/modules/appSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const actions = {
const response = await AppSettingsAPI.getAppSettings()
context.commit('set', response.data.appSettings)
} catch (error) {
// context.commit('reset')
Logger.debug('Error getting appSettings', { error })
}
},

Expand Down

0 comments on commit 4540e5c

Please sign in to comment.