From 86728d40f962f8605fe5651876e2d1c23d60eb29 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 18 Oct 2023 12:43:12 +0200 Subject: [PATCH] Added micro-credentials count query --- src/api/index.js | 6 ++++++ src/locale/en.js | 1 + src/locale/nl.js | 1 + src/routes/teachers/ManagementQueries.svelte | 7 ++++++- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/api/index.js b/src/api/index.js index 5cb687a2..899c9489 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -804,6 +804,12 @@ export function fetchInstitutionBadges() { return validFetchNoErrorDialog(path, {}, "GET"); } +export function fetchInstitutionMicroCredentials() { + const path = `${serverUrl}/insights/institution/micro-credentials`; + return validFetchNoErrorDialog(path, {}, "GET"); +} + + //BadgeInstanceCollections export function createBadgeInstanceCollection(badgeInstanceCollection) { diff --git a/src/locale/en.js b/src/locale/en.js index f2b38a23..3da7afee 100644 --- a/src/locale/en.js +++ b/src/locale/en.js @@ -1714,6 +1714,7 @@ I18n.translations.en = { title: "Management queries", institutionAdmins: "Institution admins", institutionBadges: "Badge overview", + institutionMicroCredentials: "Micro-credentials count", clear: "Clear", download: "Download", copy: "Copy", diff --git a/src/locale/nl.js b/src/locale/nl.js index 3fc5a2fe..d526651b 100644 --- a/src/locale/nl.js +++ b/src/locale/nl.js @@ -1715,6 +1715,7 @@ I18n.translations.nl = { title: "Management queries", institutionAdmins: "Institution admins", institutionBadges: "Badge overview", + institutionMicroCredentials: "Micro-credentials count", clear: "Clear", download: "Download", copy: "Copy", diff --git a/src/routes/teachers/ManagementQueries.svelte b/src/routes/teachers/ManagementQueries.svelte index 240d3367..c86bad46 100644 --- a/src/routes/teachers/ManagementQueries.svelte +++ b/src/routes/teachers/ManagementQueries.svelte @@ -1,7 +1,7 @@