From c84f6059432c30f1c70911d2eb715995afde993d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poussard?= <tpoussard@neogeo.fr> Date: Mon, 3 Jan 2022 10:07:53 +0100 Subject: [PATCH] fix style table & import button --- src/views/Catalog.vue | 6 +++--- src/views/feature_type/Feature_type_detail.vue | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/views/Catalog.vue b/src/views/Catalog.vue index 14c23f62..0c5b33a8 100644 --- a/src/views/Catalog.vue +++ b/src/views/Catalog.vue @@ -216,12 +216,12 @@ h1 { } .table .row { display: flex; - transition: background-color ease-out 0.2s; + transition: all ease-out 0.2s; } -.table .row:not(:first-of-type).selected { +.table .row:not(.header).selected { background-color: #8bddd9; } -.table .row:not(:first-of-type):hover { +.table .row:not(.header):hover { background-color: #009c95; color: #ffffff; cursor: pointer; diff --git a/src/views/feature_type/Feature_type_detail.vue b/src/views/feature_type/Feature_type_detail.vue index 7dd2f69f..bae93743 100644 --- a/src/views/feature_type/Feature_type_detail.vue +++ b/src/views/feature_type/Feature_type_detail.vue @@ -101,7 +101,7 @@ class="ui icon button import-catalog" >Créer un nouveau type de signalement à partir du catalogue Datasud </router-link> - <div v-if="$route.params.geojson" class="ui button import-catalog"> + <div v-if="$route.params.geojson" class="ui button import-catalog basic active teal"> Ressource {{$route.params.geojson.name}} </div> <ul v-if="importError" class="errorlist"> @@ -337,15 +337,11 @@ export default { if (!this.project) { this.GET_PROJECT_INFO(this.$route.params.slug); } - this.$store.commit("feature/SET_FEATURES", []); //* empty features remaining in case they were in geojson format and will be fetch anyway + this.$store.commit("feature/SET_FEATURES", []); //* empty remaining features in case they were in geojson format and will be fetch anyway this.getFeatures(); - // .then(res => resolve(res)) - // .catch(err => reject(err)); this.SET_CURRENT_FEATURE_TYPE_SLUG( this.$route.params.feature_type_slug ); - console.log(this.$route.params) - console.log(this.$route.params.type) if (this.$route.params.type === "external-geojson") { this.showImport = true; } -- GitLab