From ec44bce22d26f4fb09377f435542a4fc14fa94d6 Mon Sep 17 00:00:00 2001 From: Petar Hristov <hristov@itc.rwth-aachen.de> Date: Thu, 23 Mar 2023 09:19:53 +0100 Subject: [PATCH] Fix: Branch warning was shown by default --- .../components/create-resource/resource-type/GitLab.vue | 8 +++++++- src/modules/resource/pages/Settings.vue | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/resource/components/create-resource/resource-type/GitLab.vue b/src/modules/resource/components/create-resource/resource-type/GitLab.vue index 7563f95b..c27e5568 100644 --- a/src/modules/resource/components/create-resource/resource-type/GitLab.vue +++ b/src/modules/resource/components/create-resource/resource-type/GitLab.vue @@ -144,7 +144,13 @@ </multiselect> <template #hint> - <span v-if="!gitlabInformation.reference?.can_push" class="text-danger"> + <span + v-if=" + gitlabInformation.reference && + !gitlabInformation.reference?.can_push + " + class="text-danger" + > {{ $t("resourceType.gitlab.cantPush", { branch: gitlabInformation.reference?.name, diff --git a/src/modules/resource/pages/Settings.vue b/src/modules/resource/pages/Settings.vue index 9014f268..ef440bc4 100644 --- a/src/modules/resource/pages/Settings.vue +++ b/src/modules/resource/pages/Settings.vue @@ -371,7 +371,7 @@ export default defineComponent({ const parentProject = this.project; // Refresh the project information in the store await this.projectStore.refreshProjectInformation(parentProject); - // Refresh the project quota information + // Refresh the project quota information await this.projectStore.retrieveResourceTypeQuotas(parentProject); this.notificationStore.postNotification({ title: this.$t("toast.onDelete.success.title").toString(), -- GitLab