From 697d2e90b5ed7a5c7866fcee784d3ff1bd5ecf36 Mon Sep 17 00:00:00 2001 From: Ralf King Date: Thu, 26 Sep 2024 18:22:12 +0200 Subject: [PATCH 1/6] Add UI for isLatest flag Signed-off-by: Ralf King --- src/forms/BInputGroupFormSwitch.vue | 92 +++++++++++++++++++ src/i18n/locales/en.json | 2 + src/views/portfolio/projects/Project.vue | 3 + .../projects/ProjectAddVersionModal.vue | 35 +++++-- .../projects/ProjectCreateProjectModal.vue | 43 +++++---- .../projects/ProjectDetailsModal.vue | 67 +++++++------- src/views/portfolio/projects/ProjectList.vue | 9 ++ 7 files changed, 194 insertions(+), 57 deletions(-) create mode 100644 src/forms/BInputGroupFormSwitch.vue diff --git a/src/forms/BInputGroupFormSwitch.vue b/src/forms/BInputGroupFormSwitch.vue new file mode 100644 index 000000000..440656123 --- /dev/null +++ b/src/forms/BInputGroupFormSwitch.vue @@ -0,0 +1,92 @@ + + + + diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index e87800cbf..b75158987 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -535,6 +535,7 @@ "last_bom_import": "Last BOM Import", "last_measurement": "Last Measurement", "last_seen": "Last Seen At", + "latest": "Latest", "latest_version": "Latest Version", "legal": "Legal", "license": "License", @@ -709,6 +710,7 @@ "project_delete_title": "Confirm Project Deletion", "project_deleted": "Project deleted", "project_details": "Project Details", + "project_is_latest": "Is latest version", "project_metadata_supplier_name_desc": "The organization that supplied the BOM", "project_name": "Project Name", "project_name_desc": "The name of the project or component as provided by the supplier", diff --git a/src/views/portfolio/projects/Project.vue b/src/views/portfolio/projects/Project.vue index cf2ba6a1c..24cbad614 100644 --- a/src/views/portfolio/projects/Project.vue +++ b/src/views/portfolio/projects/Project.vue @@ -75,6 +75,9 @@ {{ $t('message.inactive').toUpperCase() }} + + {{ $t('message.latest_version').toUpperCase() }} + - - - - + + + + + + + + + +