From ad319bffb02e10b1767e19471b0d5516fca53775 Mon Sep 17 00:00:00 2001 From: khansadaoudi Date: Tue, 24 Sep 2024 16:21:23 +0200 Subject: [PATCH] count annotation schema changes for github commits --- src/api/backend-api.ts | 2 +- src/components/project/CreaProjectCard.vue | 4 ++-- src/components/project/ProjectSettingsView.vue | 16 +++++++++++++--- src/pages/Project.vue | 2 +- src/pinia/modules/project/index.ts | 3 ++- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/api/backend-api.ts b/src/api/backend-api.ts index 3e98d7e0..aa5f62e0 100644 --- a/src/api/backend-api.ts +++ b/src/api/backend-api.ts @@ -98,7 +98,7 @@ export default { getProjectConlluSchema(projectName: string) { return API.get(`projects/${projectName}/conll-schema`); }, - updateProjectConlluSchema(projectName: string, data: updateProjectConlluSchema_ED) { + updateProjectConlluSchema(projectName: string, data: any) { return API.put(`projects/${projectName}/conll-schema`, data); }, getProjectUsersAccess(projectName: string) { diff --git a/src/components/project/CreaProjectCard.vue b/src/components/project/CreaProjectCard.vue index 5ae0a1bf..ad2b71c1 100644 --- a/src/components/project/CreaProjectCard.vue +++ b/src/components/project/CreaProjectCard.vue @@ -251,9 +251,9 @@ export default defineComponent({ this.parentGetProjects(); this.submitting = false; if (this.project.config === 'ud') { - this.updateProjectConlluSchema(this.project.projectName, this.annotationFeaturesUD); + this.updateProjectConlluSchema(this.project.projectName, this.annotationFeaturesUD, false); } else { - this.updateProjectConlluSchema(this.project.projectName, this.annotationFeaturesSUD); + this.updateProjectConlluSchema(this.project.projectName, this.annotationFeaturesSUD, false); } if (this.loggedWithGithub && !this.project.blindAnnotationMode) { this.progress = 0.4; diff --git a/src/components/project/ProjectSettingsView.vue b/src/components/project/ProjectSettingsView.vue index 1d17a894..5aa5e53d 100644 --- a/src/components/project/ProjectSettingsView.vue +++ b/src/components/project/ProjectSettingsView.vue @@ -234,7 +234,7 @@