Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Badge For Inactive Projects #106

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "In Triage",
"inactive": "Inaktiv",
"inactive_active_children": "Das Projekt kann nicht auf inaktiv gesetzt werden, wenn es aktive untergeordnete Projekte hat",
"inactive_versions": "Inaktive Versionen",
"include_acl": "Zugriffskontrollliste einschließen",
"include_audit_history": "Prüfverlauf einschließen",
"include_components": "Komponenten einbinden",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "In Triage",
"inactive": "Inactive",
"inactive_active_children": "The project cannot be set to inactive if it has active children",
"inactive_versions": "Inactive Versions",
"include_acl": "Include access control list",
"include_audit_history": "Include audit history",
"include_components": "Include components",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "En triaje",
"inactive": "Inactivo",
"inactive_active_children": "El proyecto no se puede configurar como inactivo si tiene hijos activos",
"inactive_versions": "Versiones inactivas",
"include_acl": "Incluir lista de control de acceso",
"include_audit_history": "Incluir historial de auditoría",
"include_components": "Incluir componentes",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "Au tri",
"inactive": "Inactif",
"inactive_active_children": "Le projet ne peut pas être défini comme inactif s'il a des enfants actifs",
"inactive_versions": "Versions inactives",
"include_acl": "Inclure la liste de contrôle d'accès",
"include_audit_history": "Inclure l'historique d'audit",
"include_components": "Inclure les composants",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "ट्राइएज में",
"inactive": "निष्क्रिय",
"inactive_active_children": "यदि प्रोजेक्ट में सक्रिय बच्चे हैं तो उसे निष्क्रिय नहीं किया जा सकता",
"inactive_versions": "निष्क्रिय संस्करण",
"include_acl": "पहुँच नियंत्रण सूची शामिल करें",
"include_audit_history": "ऑडिट इतिहास शामिल करें",
"include_components": "घटक शामिल करें",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "Nel triage",
"inactive": "Inattivo",
"inactive_active_children": "Il progetto non può essere impostato su inattivo se ha figli attivi",
"inactive_versions": "Versioni inattive",
"include_acl": "Includere l'elenco di controllo degli accessi",
"include_audit_history": "Includere la cronologia degli audit",
"include_components": "Includi componenti",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "トリアージ中",
"inactive": "非活性",
"inactive_active_children": "アクティブな子プロジェクトがある場合、プロジェクトを非アクティブに設定することはできません。",
"inactive_versions": "非アクティブなバージョン",
"include_acl": "アクセス制御リストを含める",
"include_audit_history": "監査履歴を含める",
"include_components": "コンポーネントを含める",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "W segregacji",
"inactive": "Nieaktywny",
"inactive_active_children": "Projektu nie można ustawić jako nieaktywnego, jeśli ma aktywne elementy podrzędne",
"inactive_versions": "Nieaktywne wersje",
"include_acl": "Dołącz listę kontroli dostępu",
"include_audit_history": "Dołącz historię audytu",
"include_components": "Uwzględnij komponenty",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "Em triagem",
"inactive": "Inativo",
"inactive_active_children": "O projeto não pode ser definido como inativo se tiver filhos ativos",
"inactive_versions": "Versões inativas",
"include_acl": "Incluir lista de controle de acesso",
"include_audit_history": "Incluir histórico de auditoria",
"include_components": "Incluir componentes",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "Em triagem",
"inactive": "Inativo",
"inactive_active_children": "O projeto não pode ser definido como inativo se tiver filhos ativos",
"inactive_versions": "Versões inativas",
"include_acl": "Incluir lista de controle de acesso",
"include_audit_history": "Incluir histórico de auditoria",
"include_components": "Incluir componentes",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "В сортировке",
"inactive": "Неактивный",
"inactive_active_children": "Проект нельзя сделать неактивным, если у него есть активные дочерние элементы.",
"inactive_versions": "Неактивные версии",
"include_acl": "Включить список контроля доступа",
"include_audit_history": "Включить историю аудита",
"include_components": "Включить компоненты",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "В Triage",
"inactive": "Неактивний",
"inactive_active_children": "Проект не можна зробити неактивним, якщо він має активних дітей",
"inactive_versions": "Неактивні версії",
"include_acl": "Додайте список контролю доступу",
"include_audit_history": "Включіть історію аудиту",
"include_components": "Включіть компоненти",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
"in_triage": "在分类中",
"inactive": "不活跃",
"inactive_active_children": "如果项目有活跃子项目,则不能将其设置为非活跃项目",
"inactive_versions": "非活动版本",
"include_acl": "包括访问控制列表",
"include_audit_history": "包括审计历史",
"include_components": "包括组件",
Expand Down
28 changes: 26 additions & 2 deletions src/views/portfolio/projects/Project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,33 @@
></i
></a>
<ul class="dropdown-menu">
<span v-for="projectVersion in project.versions">
<span v-for="projectVersion in activeProjectVersions">
<b-dropdown-item
:to="{
name: 'Project',
params: { uuid: projectVersion.uuid },
}"
>{{ projectVersion.version }}</b-dropdown-item
>
{{ projectVersion.version }}
</b-dropdown-item>
</span>
<b-dropdown-group
v-if="inactiveProjectVersions.length > 0"
header="$t('message.inactive_versions')"
>
<span
v-for="projectVersion in inactiveProjectVersions"
>
<b-dropdown-item
:to="{
name: 'Project',
params: { uuid: projectVersion.uuid },
}"
>
{{ projectVersion.version }}
</b-dropdown-item>
</span>
</b-dropdown-group>
</ul>
</li>
</ol>
Expand Down Expand Up @@ -376,6 +394,12 @@ export default {
return this.project.name;
}
},
activeProjectVersions() {
return this.project.versions.filter((version) => version.active);
},
inactiveProjectVersions() {
return this.project.versions.filter((version) => !version.active);
},
},
data() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/views/portfolio/projects/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export default {
return value === true ? '<i class="fa fa-check-square-o" />' : '';
},
align: 'center',
sortable: true,
sortable: false,
},
{
title: this.$t('message.components'),
Expand Down
Loading