From 89afa333cb97ff039866f8646dc166c09d15af19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e?= <tpoussard@neogeo.fr> Date: Fri, 20 May 2022 16:33:19 +0200 Subject: [PATCH] remove comments, unused mapAction & remove datatable margins --- src/components/Project/FeaturesListAndMap/FeatureListTable.vue | 1 - src/store/modules/feature.store.js | 3 --- src/views/Project/FeaturesListAndMap.vue | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/components/Project/FeaturesListAndMap/FeatureListTable.vue b/src/components/Project/FeaturesListAndMap/FeatureListTable.vue index 00cd492a..b90db16c 100644 --- a/src/components/Project/FeaturesListAndMap/FeatureListTable.vue +++ b/src/components/Project/FeaturesListAndMap/FeatureListTable.vue @@ -512,7 +512,6 @@ export default { .dataTables_wrapper { position: relative; clear: both; - margin: 0 1em; } table.dataTable th.dt-center, table.dataTable td.dt-center, table.dataTable td.dataTables_empty { text-align: center; diff --git a/src/store/modules/feature.store.js b/src/store/modules/feature.store.js index 19f01b06..5d785813 100644 --- a/src/store/modules/feature.store.js +++ b/src/store/modules/feature.store.js @@ -177,7 +177,6 @@ const feature = { }, SEND_FEATURE({ state, rootState, dispatch }, routeName) { - //commit('DISPLAY_LOADER', 'Le signalement est en cours de création', { root: true }); function redirect(featureId) { dispatch( 'GET_PROJECT_FEATURE', @@ -187,7 +186,6 @@ const feature = { } ) .then(() => { - //commit('DISCARD_LOADER', null, { root: true }); router.push({ name: 'details-signalement', params: { @@ -253,7 +251,6 @@ const feature = { } }) .catch((error) => { - //commit('DISCARD_LOADER', null, { root: true }); if (error.message === 'Network Error' || !rootState.isOnline) { let arraysOffline = []; const localStorageArray = localStorage.getItem('geocontrib_offline'); diff --git a/src/views/Project/FeaturesListAndMap.vue b/src/views/Project/FeaturesListAndMap.vue index 9b6c0542..ec06f010 100644 --- a/src/views/Project/FeaturesListAndMap.vue +++ b/src/views/Project/FeaturesListAndMap.vue @@ -228,8 +228,6 @@ export default { methods: { ...mapActions('feature', [ - 'GET_PROJECT_FEATURES', - 'SEND_FEATURE', 'DELETE_FEATURE', ]), -- GitLab