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

Add project inactiveSince timestamp #207

Merged
merged 3 commits into from
Jan 3, 2025
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 @@ -535,6 +535,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_since": "Inaktiv seit",
"inactive_versions": "Inaktive Versionen",
"include_acl": "Zugriffskontrollliste einschließen",
"include_audit_history": "Prüfverlauf einschließen",
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 @@ -535,6 +535,7 @@
"in_triage": "In Triage",
"inactive": "Inactive",
"inactive_active_children": "The project cannot be set to inactive if it has active children",
"inactive_since": "Inactive since",
"inactive_versions": "Inactive Versions",
"include_acl": "Include access control list",
"include_audit_history": "Include audit history",
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 @@ -535,6 +535,7 @@
"in_triage": "En triaje",
"inactive": "Inactivo",
"inactive_active_children": "El proyecto no se puede configurar como inactivo si tiene hijos activos",
"inactive_since": "Inactivo desde",
"inactive_versions": "Versiones inactivas",
"include_acl": "Incluir lista de control de acceso",
"include_audit_history": "Incluir historial de auditoría",
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 @@ -535,6 +535,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_since": "Inactif depuis",
"inactive_versions": "Versions inactives",
"include_acl": "Inclure la liste de contrôle d'accès",
"include_audit_history": "Inclure l'historique d'audit",
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 @@ -535,6 +535,7 @@
"in_triage": "ट्राइएज में",
"inactive": "निष्क्रिय",
"inactive_active_children": "यदि प्रोजेक्ट में सक्रिय बच्चे हैं तो उसे निष्क्रिय नहीं किया जा सकता",
"inactive_since": "तब से निष्क्रिय",
"inactive_versions": "निष्क्रिय संस्करण",
"include_acl": "पहुँच नियंत्रण सूची शामिल करें",
"include_audit_history": "ऑडिट इतिहास शामिल करें",
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 @@ -535,6 +535,7 @@
"in_triage": "Nel triage",
"inactive": "Inattivo",
"inactive_active_children": "Il progetto non può essere impostato su inattivo se ha figli attivi",
"inactive_since": "Inattivo da",
"inactive_versions": "Versioni inattive",
"include_acl": "Includere l'elenco di controllo degli accessi",
"include_audit_history": "Includere la cronologia degli audit",
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 @@ -535,6 +535,7 @@
"in_triage": "トリアージ中",
"inactive": "非活性",
"inactive_active_children": "アクティブな子プロジェクトがある場合、プロジェクトを非アクティブに設定することはできません。",
"inactive_since": "以降非アクティブ",
"inactive_versions": "非アクティブなバージョン",
"include_acl": "アクセス制御リストを含める",
"include_audit_history": "監査履歴を含める",
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 @@ -535,6 +535,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_since": "Nieaktywny od",
"inactive_versions": "Nieaktywne wersje",
"include_acl": "Dołącz listę kontroli dostępu",
"include_audit_history": "Dołącz historię audytu",
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 @@ -535,6 +535,7 @@
"in_triage": "Em triagem",
"inactive": "Inativo",
"inactive_active_children": "O projeto não pode ser definido como inativo se tiver filhos ativos",
"inactive_since": "Inativo desde",
"inactive_versions": "Versões inativas",
"include_acl": "Incluir lista de controle de acesso",
"include_audit_history": "Incluir histórico de auditoria",
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 @@ -535,6 +535,7 @@
"in_triage": "Em triagem",
"inactive": "Inativo",
"inactive_active_children": "O projeto não pode ser definido como inativo se tiver filhos ativos",
"inactive_since": "Inativo desde",
"inactive_versions": "Versões inativas",
"include_acl": "Incluir lista de controle de acesso",
"include_audit_history": "Incluir histórico de auditoria",
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 @@ -535,6 +535,7 @@
"in_triage": "В сортировке",
"inactive": "Неактивный",
"inactive_active_children": "Проект нельзя сделать неактивным, если у него есть активные дочерние элементы.",
"inactive_since": "Неактивен с",
"inactive_versions": "Неактивные версии",
"include_acl": "Включить список контроля доступа",
"include_audit_history": "Включить историю аудита",
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 @@ -535,6 +535,7 @@
"in_triage": "В Triage",
"inactive": "Неактивний",
"inactive_active_children": "Проект не можна зробити неактивним, якщо він має активних дітей",
"inactive_since": "Неактивний з",
"inactive_versions": "Неактивні версії",
"include_acl": "Додайте список контролю доступу",
"include_audit_history": "Включіть історію аудиту",
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 @@ -535,6 +535,7 @@
"in_triage": "在分类中",
"inactive": "不活跃",
"inactive_active_children": "如果项目有活跃子项目,则不能将其设置为非活跃项目",
"inactive_since": "不活跃自",
"inactive_versions": "非活动版本",
"include_acl": "包括访问控制列表",
"include_audit_history": "包括审计历史",
Expand Down
11 changes: 10 additions & 1 deletion src/views/portfolio/projects/ProjectDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<b-input-group-form-switch
id="project-details-active"
:label-on="$t('message.active')"
:label-off="$t('message.inactive')"
:label-off="$t(`${inactiveSinceTimestamp}`)"
v-model="project.active"
:tooltip="$t('message.inactive_active_children')"
:disabled="
Expand Down Expand Up @@ -851,6 +851,15 @@ export default {
this.availableParents = [{ name: '', version: '', uuid: null }];
},
},
computed: {
inactiveSinceTimestamp: function () {
return this.project.inactiveSince
? this.$t('message.inactive_since') +
': ' +
common.formatTimestamp(this.project.inactiveSince, true)
: this.$t('message.inactive');
},
},
};
</script>

Expand Down
Loading