From 5b84e4bfdbd79f45bfa1097f3bc9b375ae6a77dd Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 16 May 2020 03:52:11 +0200 Subject: [PATCH] Fix exercices' theme loading in admin --- admin/static/js/app.js | 2 +- admin/static/views/theme.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/static/js/app.js b/admin/static/js/app.js index b4a4c4d7..fb60bfc9 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -273,7 +273,7 @@ angular.module("FICApp") }) }) .factory("ThemedExercice", function($resource) { - return $resource("/api/themes/:themeId/exercices/:exerciceId", { exerciceId: '@id' }, { + return $resource("/api/themes/:themeId/exercices/:exerciceId", { themeId: '@id', exerciceId: '@idExercice' }, { update: {method: 'PUT'} }) }) diff --git a/admin/static/views/theme.html b/admin/static/views/theme.html index 86a00357..04ad8f74 100644 --- a/admin/static/views/theme.html +++ b/admin/static/views/theme.html @@ -16,7 +16,7 @@ -
+

Exercices ({{ exercices.length }})