diff --git a/CHANGELOG.md b/CHANGELOG.md index 8204667..92a907c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,20 @@ Releases prior to v2.0.1 are only documented on the [GitHub Release Page](https://github.com/rwth-acis/RequirementsBazaar-WebFrontend/releases) ## [Unreleased] + +## [2.6.1] - 2023-06-13 + +### Added + +- Make priority labels customizable + [#282](https://github.com/rwth-acis/RequirementsBazaar-WebFrontend/pull/282) + +### Changed + +- Changed export dialog to choose if labels are exported + [commit 0c5c6b1f493ed7af2ea3c77a0c82673a2dcd0995](https://github.com/rwth-acis/RequirementsBazaar-WebFrontend/commit/0c5c6b1f493ed7af2ea3c77a0c82673a2dcd0995) + + ## [2.6.0] - 2023-05-10 ### Added diff --git a/package.json b/package.json index 788e913..8f53e55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reqbaz", - "version": "2.5.0", + "version": "2.6.1", "scripts": { "dev": "vite --port 3000", "dev-local-api": "vite --mode dev-local-api --port 3000", diff --git a/src/components/ExportPopup.vue b/src/components/ExportPopup.vue index 8a02ef5..f03beed 100644 --- a/src/components/ExportPopup.vue +++ b/src/components/ExportPopup.vue @@ -6,6 +6,8 @@ + + -
+
+
+ +
@@ -150,6 +153,7 @@ import CategoryCard from '../components/CategoryCard.vue'; import ProjectEditor from '../components/ProjectEditor.vue'; import CategoryEditor from '../components/CategoryEditor.vue'; import ProjectMembersList from '../components/ProjectMembersList.vue'; +import ProjectTagsList from '../components/ProjectTagsList.vue'; import ProjectBreadcrumbNav from '@/components/ProjectBreadcrumbNav.vue'; import { Project } from '@/types/bazaar-api'; @@ -162,6 +166,7 @@ export default defineComponent({ CategoryEditor, ProjectMembersList, ProjectBreadcrumbNav, + ProjectTagsList, }, name: 'Project', props: { @@ -177,6 +182,9 @@ export default defineComponent({ const project = computed(() => store.getters.getProjectById(projectId)); store.dispatch(ActionTypes.FetchProject, projectId); const showCategories = computed(() => route.params.members ? false : true); + const showTags = computed(() => route.params.members == 'tags' ? true:false); + + // read values for the timeline const hook_id_value = computed(() => project.value?.additionalProperties?.hook_id); @@ -278,12 +286,19 @@ export default defineComponent({ to: `/projects/${projectId}/members` }; + const TAGS_TAB_LABEL = t('projectDetails-tags'); + const TAGS_TAB_ITEM = { + label: TAGS_TAB_LABEL, + to: `/projects/${projectId}/tags` + }; + const tabItems = ref([ { label: t('projectDetails-allCategories'), // was: 'Overview' to: `/projects/${projectId}` }, - MEMBERS_TAB_ITEM + MEMBERS_TAB_ITEM, + TAGS_TAB_ITEM, ]); const projectEditorName = ref(''); @@ -297,13 +312,17 @@ export default defineComponent({ //const role = project.value.userContext?.projectRole; //if (['ProjectAdmin', 'SystemAdmin'].includes(role)) { const membersItemId = tabItems.value.findIndex(item => item.label === MEMBERS_TAB_LABEL); + const tagsItemId = tabItems.value.findIndex(item => item.label === TAGS_TAB_LABEL); + if (!oidcIsAuthenticated.value && membersItemId > -1) { tabItems.value.splice(membersItemId, 1); + tabItems.value.splice(tagsItemId, 2); } if (oidcIsAuthenticated.value) { if (membersItemId === -1) { - // user is authentivated and memebrs tab not visible yet -> add to tab items + // user is authenticated and memebers tab not visible yet -> add to tab items tabItems.value.push(MEMBERS_TAB_ITEM); + tabItems.value.push(TAGS_TAB_ITEM); } } }); @@ -544,6 +563,7 @@ export default defineComponent({ projectEditorCanceled, projectEditorSaved, showCategories, + showTags, connectToGithub, timelineEvents, newReleaseAvailable,