Skip to content

Commit 27fa07a

Browse files
committed
style(Gestion): add full lists of tags and exercises in administration and gestion interface for creating/modifying exercises
1 parent ab87709 commit 27fa07a

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

pages/administration/exercices/_id.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@
8888
title: exercise.title,
8989
tags: $accessor.tags.tagsRequest
9090
},
91-
filterOptions: {
92-
state: ['VALIDATED']
93-
},
9491
orderBy: [{field: "date", value: "DESC"}, {field: 'id', value: 'ASC'}],
9592
includeOptions: {includeDescription: false, includeTags: false}
9693
};

pages/administration/exercices/creer-exercice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
await $accessor.tags.fetch({});
5050
$accessor.exercises.UPDATE_INCLUDE_OPTIONS({includeDescription: false, includeTags: false});
5151
$accessor.exercises.UPDATE_ORDER_BY([{field: "date", value: "DESC"}, {field: 'id', value: 'ASC'}]);
52-
$accessor.exercises.UPDATE_FILTER_OPTIONS({state: ['VALIDATED']})
52+
$accessor.exercises.UPDATE_FILTER_OPTIONS({});
5353
},
5454
middleware: ['auth', 'admin', 'reset-search-request']
5555
})

pages/gestion/mes-exercices/_id.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@
9393
title: exercise.title,
9494
tags: $accessor.tags.tagsRequest
9595
},
96-
filterOptions: {
97-
state: ['VALIDATED']
98-
},
9996
orderBy: [{field: "date", value: "DESC"}, {field: 'id', value: 'ASC'}],
10097
includeOptions: {includeDescription: false, includeTags: false}
10198
};

pages/gestion/mes-exercices/creer-exercice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
await $accessor.tags.fetch({});
5757
$accessor.exercises.UPDATE_INCLUDE_OPTIONS({includeDescription: false, includeTags: false});
5858
$accessor.exercises.UPDATE_ORDER_BY([{field: "date", value: "DESC"}, {field: 'id', value: 'ASC'}])
59-
$accessor.exercises.UPDATE_FILTER_OPTIONS({state: ['VALIDATED']})
59+
$accessor.exercises.UPDATE_FILTER_OPTIONS({})
6060
} catch (e) {
6161
const errorAxios = e as AxiosError;
6262

0 commit comments

Comments
 (0)