From eb615a28a1c9d4fefa5842c1b1574b357f730c0d Mon Sep 17 00:00:00 2001
From: Sirieam Marie Hunke <hunke@itc.rwth-aachen.de>
Date: Wed, 22 Mar 2023 15:27:36 +0100
Subject: [PATCH] Fix: Missing API Call for refreshing resourcetype quota

---
 src/modules/admin/i18n/de.ts            | 2 +-
 src/modules/resource/pages/Settings.vue | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/admin/i18n/de.ts b/src/modules/admin/i18n/de.ts
index 1820d4cb..24255af6 100644
--- a/src/modules/admin/i18n/de.ts
+++ b/src/modules/admin/i18n/de.ts
@@ -31,7 +31,7 @@ export default {
       headers: {
         resourceType: "Ressourcentyp",
         projectQuota: "Aktuelle Projektquota",
-        resourceQuota: "Aktielle Ressourcenquota",
+        resourceQuota: "Aktuelle Ressourcenquota",
 
         maximumQuota: "Maximale Quota",
         maximumQuotaHint:
diff --git a/src/modules/resource/pages/Settings.vue b/src/modules/resource/pages/Settings.vue
index b0448700..9014f268 100644
--- a/src/modules/resource/pages/Settings.vue
+++ b/src/modules/resource/pages/Settings.vue
@@ -371,6 +371,8 @@ export default defineComponent({
         const parentProject = this.project;
         // Refresh the project information in the store
         await this.projectStore.refreshProjectInformation(parentProject);
+        // Refresh the project quota information 
+        await this.projectStore.retrieveResourceTypeQuotas(parentProject);
         this.notificationStore.postNotification({
           title: this.$t("toast.onDelete.success.title").toString(),
           body: this.$t("toast.onDelete.success.message").toString(),
-- 
GitLab