-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refacto search pages #633
base: main
Are you sure you want to change the base?
Refacto search pages #633
Conversation
✅ Deploy Preview for ecospheres ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for meteo-france ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
const route = useRoute() | ||
const router = useRouter() | ||
|
||
const discussionStore = useDiscussionStore() | ||
const userStore = useUserStore() | ||
|
||
const { topicsName } = useTopicsConf() | ||
// const { searchPageName } = useSearchPagesConfig( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça posait un bug, à corriger avant merge
@@ -44,8 +46,7 @@ const props = defineProps({ | |||
}) | |||
|
|||
const subjectClassLabels = { | |||
Dataset: 'jeu de données', | |||
Topic: topicsName | |||
Dataset: 'jeu de données' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
à corriger avant merge
@@ -57,7 +57,7 @@ const badgeClasse = computed(() => { | |||
<DsfrBadge | |||
v-if="alreadySelected" | |||
type="info" | |||
label="Déjà utilisé dans ce bouquet" | |||
label="Déjà utilisé dans ce topic" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
à corriger
@@ -27,5 +23,5 @@ export interface ReuseType { | |||
// use a const instead of an interface to be compatible with topicsName as a variable | |||
export const ReuseModel = { | |||
dataset: 'jeu de donnée', | |||
topic: topicsName | |||
topic: 'test' // to fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
àc orriger
}) | ||
}, | ||
{ | ||
path: ':bid', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rajouter une condition pour ne pas ajouter cette objet si type = datasets
@@ -262,26 +263,26 @@ watch( | |||
la source originale peuvent avoir été perdues lors de leur | |||
récupération. Nous travaillons actuellement à améliorer la situation. | |||
</div> | |||
<div | |||
<!-- <div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
à corriger on ne peut plus ajouter un dataset à un bouquet car on ne sait pas quel objet choisir.
Objectif de la PR :
Ce que fait cette PR :
search_config
et enlève les config précédentestopics
,themes
etindicators
. Cet objetsearch_config
qui est un objet contenant différentes propriétés :Ce qu'il manque :