From 0d8e5833aa4d0d2af350671f63d3537c34cf1795 Mon Sep 17 00:00:00 2001 From: Vanessa Fotso <46642178+vanessuniq@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:21:45 -0400 Subject: [PATCH] Allow Admin to Update Project Description (#632) allow updating project description Signed-off-by: Vanessa Fotso --- app/javascript/components/project/Project.vue | 11 +++ .../components/projects/Projects.vue | 2 +- .../components/projects/ProjectsTable.vue | 11 +-- .../projects/RenameProjectModal.vue | 70 --------------- .../projects/UpdateProjectDetailsModal.vue | 85 +++++++++++++++++++ 5 files changed, 103 insertions(+), 76 deletions(-) delete mode 100644 app/javascript/components/projects/RenameProjectModal.vue create mode 100644 app/javascript/components/projects/UpdateProjectDetailsModal.vue diff --git a/app/javascript/components/project/Project.vue b/app/javascript/components/project/Project.vue index 5b6390bb..01b0a07c 100644 --- a/app/javascript/components/project/Project.vue +++ b/app/javascript/components/project/Project.vue @@ -215,6 +215,10 @@ +

Name: {{ project.name }}

+

+ Description: {{ project.description }} +

Applicable - Configurable: {{ project.details.ac }} ({{ ((project.details.ac / project.details.total) * 100).toFixed(2) @@ -256,6 +260,11 @@ }}%)

Total: {{ project.details.total }}

+
@@ -328,6 +337,7 @@ import AddComponentModal from "../components/AddComponentModal.vue"; import NewComponentModal from "../components/NewComponentModal.vue"; import DiffViewer from "./DiffViewer.vue"; import RevisionHistory from "./RevisionHistory.vue"; +import UpdateProjectDetailsModal from "../projects/UpdateProjectDetailsModal.vue"; export default { name: "Project", @@ -340,6 +350,7 @@ export default { NewComponentModal, DiffViewer, RevisionHistory, + UpdateProjectDetailsModal, }, mixins: [DateFormatMixinVue, AlertMixinVue, FormMixinVue, RoleComparisonMixin], props: { diff --git a/app/javascript/components/projects/Projects.vue b/app/javascript/components/projects/Projects.vue index 10262d02..2eb983cd 100644 --- a/app/javascript/components/projects/Projects.vue +++ b/app/javascript/components/projects/Projects.vue @@ -4,7 +4,7 @@ diff --git a/app/javascript/components/projects/ProjectsTable.vue b/app/javascript/components/projects/ProjectsTable.vue index 922bfebc..95742c70 100644 --- a/app/javascript/components/projects/ProjectsTable.vue +++ b/app/javascript/components/projects/ProjectsTable.vue @@ -89,11 +89,12 @@