Skip to content
Snippets Groups Projects
Commit 081a13dd authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

Change path members/_hash to member?hash

parent f4b9d6b3
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
@click=" @click="
$router.push( $router.push(
localePath({ localePath({
name: 'membres-hash', name: 'membre',
params: { hash: certif.hash } query: { hash: certif.hash }
}) })
) )
"> ">
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
@click=" @click="
$router.push( $router.push(
localePath({ localePath({
name: 'membres-hash', name: 'membre',
params: { hash: certif.hash } query: { hash: certif.hash }
}) })
) )
"> ">
......
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
methods: { methods: {
redirect(hash) { redirect(hash) {
this.$router.push( this.$router.push(
this.localePath({ name: "membres-hash", params: { hash } }) this.localePath({ name: "membre", query: { hash } })
) )
}, },
sort(s) { sort(s) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="alert alert-danger" v-if="error">{{ error }}</div> <div class="alert alert-danger" v-if="error">{{ error }}</div>
</transition> </transition>
<transition name="fade"> <transition name="fade">
<div v-if="idFromHash"> <div v-if="idFromHash && !$apollo.queries.idFromHash.loading">
<div class="container-md"> <div class="container-md">
<div class="row"> <div class="row">
<div class="col-lg-9 col-xl-8 mx-auto my-3"> <div class="col-lg-9 col-xl-8 mx-auto my-3">
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
import { SEARCH_MEMBER } from "@/graphql/queries" import { SEARCH_MEMBER } from "@/graphql/queries"
export default { export default {
name: 'membre',
data() { data() {
return { return {
breadcrumb: [ breadcrumb: [
...@@ -112,7 +113,7 @@ export default { ...@@ -112,7 +113,7 @@ export default {
idFromHash: { idFromHash: {
query: SEARCH_MEMBER, query: SEARCH_MEMBER,
variables() { variables() {
return { hash: this.$route.params.hash } return { hash: this.$route.query.hash }
}, },
error(err) { error(err) {
this.error = err.message this.error = err.message
...@@ -121,9 +122,9 @@ export default { ...@@ -121,9 +122,9 @@ export default {
}, },
nuxtI18n: { nuxtI18n: {
paths: { paths: {
fr: "/membres/:hash", fr: "/membre",
en: "/members/:hash", en: "/member",
es: "/miembros/:hash" es: "/miembro"
} }
}, },
computed: { computed: {
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
@click=" @click="
$router.push( $router.push(
localePath({ localePath({
name: 'membres-hash', name: 'membre',
params: { hash: forecast.member.hash } query: { hash: forecast.member.hash }
}) })
) )
"> ">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment