Commit 9ce0fd4f authored by GuiΩ's avatar GuiΩ
Browse files

fix store/modules for am/ prefix

parent b4d22ff0
......@@ -15,7 +15,7 @@ Events:
<div class="feuille-titre">feuille {{ feuille.position }}
<template v-for="model of $store.state.latex.models">
<template v-if="model.type === 'FE'">
<a :href="'/api/feuille/' + feuille.id +'/get_pdf/?model_id=' + model.id">{{model.label}}.pdf</a>&nbsp;
<a :href="'api/feuille/' + feuille.id +'/get_pdf/?model_id=' + model.id">{{model.label}}.pdf</a>&nbsp;
</template>
</template>
</div>
......
......@@ -47,7 +47,7 @@ Events:
<br> <br>
<template v-for="model of $store.state.latex.models">
<template v-if="model.type === 'SE'">
<a :href="'/api/seance/' + seance.id +'/get_pdf/?model_id=' + model.id">{{model.label}}.pdf</a><br>
<a :href="'api/seance/' + seance.id +'/get_pdf/?model_id=' + model.id">{{model.label}}.pdf</a><br>
</template>
</template>
<br/>
......
......@@ -231,7 +231,7 @@ const actions = {
loadScoresOfQuestion({commit, state, rootState}, question_id) {
if (!rootState.themes.curr_theme_id || !rootState.classes.curr_classe_id)
return
return $axios.get("/api/question-posee/?theme_id=" + rootState.themes.curr_theme_id
return $axios.get("api/question-posee/?theme_id=" + rootState.themes.curr_theme_id
+ "&classe_id=" + rootState.classes.curr_classe_id
+ "&question_id=" + question_id)
.then(response => {
......
......@@ -66,9 +66,9 @@ const actions = {
commit('QUESTION_SAVE_INIT')
let request
if (data.newQuestion.id) {
request = $axios.patch('/api/question/' + data.newQuestion.id + '/', data.newQuestion)
request = $axios.patch('api/question/' + data.newQuestion.id + '/', data.newQuestion)
} else {
request = $axios.post('/api/question/', data.newQuestion)
request = $axios.post('api/question/', data.newQuestion)
}
return request
.then(response => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment