Skip to content
Open
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
6 changes: 6 additions & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "Das Suchergebnis zeigt Elemente an, die genau mit der Eingabe übereinstimmen. \nEntspricht der Verwendung von (\") um das Suchwort. Wird auf den Namen angewendet.",
"Excel report generation has started": "Die Erstellung des Excel-Berichts hat begonnen. \nSobald der Vorgang abgeschlossen ist, senden wir Ihnen eine E-Mail mit dem Download-Link!",
"Export report generation has failed": "Die Erstellung der Export-Tabelle ist fehlgeschlagen. Bitte versuchen Sie es erneut.",
"Expand": "Erweitern",
"Expand All": "Alle erweitern",
"Collapse": "Zusammenklappen",
"Collapse All": "Alle zuklappen",
"Expand Next Level": "Erweitern Sie die nächste Ebene",
"Expand next level": "Erweitern Sie das nächste Level",
"Expert": "Sachverständige",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "erfolgreich gelöscht",
"disable_clearing_report_download_description": "Deaktivieren Sie die ISR -Generation im Fosologieprozess",
"enable_auto_set_ecc_status_description": "Aktivieren Sie den automatischen Set ECC -Status",
"Enable Linked Projects Display": "Anzeige verknüpfter Projekte aktivieren",
"enable_linked_projects_display": "Anzeige verknüpfter Projekte in Projekten aktivieren",
"entries": "Einträge",
"external urls": "externe URLs",
"force_update_enabled_description": "Kraft -Update -Funktion aktivieren",
Expand Down
6 changes: 6 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "The search result will display elements exactly matching the input. Equivalent to using (\") around the search keyword. Applied on Name.",
"Excel report generation has started": "Excel report generation has started. We will send you an email with download link once completed!",
"Export report generation has failed": "Export Spreadsheet Generation failed, please try again!",
"Expand": "Expand",
"Expand All": "Expand All",
"Collapse": "Collapse",
"Collapse All": "Collapse All",
"Expand Next Level": "Expand Next Level",
"Expand next level": "Expand next level",
"Expert": "Expert",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "deleted successfully",
"disable_clearing_report_download_description": "Disable the ISR generation in fossology process",
"enable_auto_set_ecc_status_description": "Enable auto set ECC status",
"Enable Linked Projects Display": "Enable Linked Projects Display",
"enable_linked_projects_display": "Enable Linked Projects Display in Projects",
"entries": "entries",
"external urls": "external urls",
"force_update_enabled_description": "Enable force update feature",
Expand Down
6 changes: 6 additions & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "El resultado de la búsqueda mostrará elementos que coincidan exactamente con la entrada. \nEquivale a utilizar (\") alrededor de la palabra clave de búsqueda. Se aplica al nombre.",
"Excel report generation has started": "La generación del informe Excel ha comenzado. \n¡Le enviaremos un correo electrónico con el enlace de descarga una vez completado!",
"Export report generation has failed": "La generación de la hoja de cálculo de exportación ha fallado. Por favor, inténtelo de nuevo.",
"Expand": "Expandir",
"Expand All": "Expandir todo",
"Collapse": "Contraer",
"Collapse All": "Contraer todo",
"Expand Next Level": "Expandir el siguiente nivel",
"Expand next level": "Expandir el siguiente nivel",
"Expert": "Expert",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "eliminado con éxito",
"disable_clearing_report_download_description": "Deshabilitar la generación ISR en proceso de fosología",
"enable_auto_set_ecc_status_description": "Habilitar el estado de ECC establecido automáticamente",
"Enable Linked Projects Display": "Habilitar la visualización de proyectos vinculados",
"enable_linked_projects_display": "Habilitar la visualización de proyectos vinculados en proyectos",
"entries": "entradas",
"external urls": "urls externos",
"force_update_enabled_description": "Habilitar la función de actualización de Force",
Expand Down
6 changes: 6 additions & 0 deletions messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "Le résultat de la recherche affichera les éléments correspondant exactement à l’entrée. \nÉquivaut à l'utilisation de (\") autour du mot-clé de recherche. Appliqué sur le nom.",
"Excel report generation has started": "La génération du rapport Excel a commencé. \nNous vous enverrons un e-mail avec le lien de téléchargement une fois terminé !",
"Export report generation has failed": "La génération du tableur d’exportation a échoué. Veuillez réessayer.",
"Expand": "Développer",
"Expand All": "Développer tout",
"Collapse": "Réduire",
"Collapse All": "Réduire tout",
"Expand Next Level": "Développer le niveau suivant",
"Expand next level": "Développer le niveau suivant",
"Expert": "Expert",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "supprimé avec succès",
"disable_clearing_report_download_description": "Désactiver la génération ISR dans le processus de fossologie",
"enable_auto_set_ecc_status_description": "Activer l'état ECC de set automatique",
"Enable Linked Projects Display": "Activer l'affichage des projets liés",
"enable_linked_projects_display": "Activer l'affichage des projets liés dans les projets",
"entries": "entrées",
"external urls": "urnes extérieures",
"force_update_enabled_description": "Activer la fonction de mise à jour de force",
Expand Down
6 changes: 6 additions & 0 deletions messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "検索結果には、入力と完全に一致する要素が表示されます。\n検索キーワードを (\") で囲むのと同じです。名前に適用されます。",
"Excel report generation has started": "Excel レポートの生成が開始されました。\n完了したら、ダウンロードリンクを記載したメールを送信します。",
"Export report generation has failed": "エクスポート用スプレッドシートの生成に失敗しました。もう一度お試しください。",
"Expand": "展開",
"Expand All": "すべて展開",
"Collapse": "折りたたむ",
"Collapse All": "すべて折りたたむ",
"Expand Next Level": "次のレベルを展開",
"Expand next level": "次のレベルを展開します",
"Expert": "エキスパート",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "正常に削除されました",
"disable_clearing_report_download_description": "FossologyプロセスでISR世代を無効にします",
"enable_auto_set_ecc_status_description": "Auto Set ECCステータスを有効にします",
"Enable Linked Projects Display": "リンクされたプロジェクト表示を有効にする",
"enable_linked_projects_display": "プロジェクトでリンクされたプロジェクト表示を有効にする",
"entries": "件表示",
"external urls": "外部 URL",
"force_update_enabled_description": "フォース更新機能を有効にします",
Expand Down
6 changes: 6 additions & 0 deletions messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "검색 결과에는 입력과 정확히 일치하는 요소가 표시됩니다. \n검색어 앞뒤에 (\")를 사용하는 것과 같습니다. 이름에 적용됩니다.",
"Excel report generation has started": "Excel 보고서 생성이 시작되었습니다. \n완료되면 다운로드 링크가 포함된 이메일을 보내드리겠습니다!",
"Export report generation has failed": "내보내기 스프레드시트 생성에 실패했습니다. 다시 시도해 주세요.",
"Expand": "확장",
"Expand All": "모두 확장",
"Collapse": "축소",
"Collapse All": "모두 축소",
"Expand Next Level": "다음 레벨 확장",
"Expand next level": "다음 단계를 확장하십시오",
"Expert": "주요 특징",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "성공적으로 삭제되었습니다",
"disable_clearing_report_download_description": "화학 과정에서 ISR 생성을 비활성화합니다",
"enable_auto_set_ecc_status_description": "자동 설정 ECC 상태를 활성화합니다",
"Enable Linked Projects Display": "연결된 프로젝트 표시 활성화",
"enable_linked_projects_display": "프로젝트에서 연결된 프로젝트 표시 활성화",
"entries": "이름 *",
"external urls": "외부 URL",
"force_update_enabled_description": "힘 업데이트 기능을 활성화합니다",
Expand Down
6 changes: 6 additions & 0 deletions messages/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,10 @@
"Exact Match": "Correspondência exata",
"Exact_Match_Info": "O resultado da pesquisa exibirá elementos que correspondem exatamente à entrada. \nEquivalente a usar (\") ao redor da palavra-chave de pesquisa. Aplicado em Nome.",
"Excel report generation has started": "A geração de relatórios do Excel foi iniciada. \nEnviaremos um e-mail com o link para download assim que concluído!",
"Expand": "Expandir",
"Expand All": "Expandir tudo",
"Collapse": "Recolher",
"Collapse All": "Recolher tudo",
"Expand Next Level": "Expanda o próximo nível",
"Expand next level": "Expanda o próximo nível",
"Expert": "Especialista",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "excluído com sucesso",
"disable_clearing_report_download_description": "Desative a geração ISR no processo de fossologia",
"enable_auto_set_ecc_status_description": "Ativar status de ECC definido automaticamente",
"Enable Linked Projects Display": "Habilitar exibição de projetos vinculados",
"enable_linked_projects_display": "Habilitar exibição de projetos vinculados em projetos",
"entries": "concluídas",
"external urls": "uRLs externas",
"force_update_enabled_description": "Ativar recurso de atualização de força",
Expand Down
6 changes: 6 additions & 0 deletions messages/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "Kết quả tìm kiếm sẽ hiển thị các phần tử khớp chính xác với đầu vào. \nTương đương với việc sử dụng (\") xung quanh từ khóa tìm kiếm. Áp dụng trên Tên.",
"Excel report generation has started": "Việc tạo báo cáo Excel đã bắt đầu. \nChúng tôi sẽ gửi cho bạn một email có liên kết tải xuống sau khi hoàn tất!",
"Export report generation has failed": "Việc tạo bảng tính xuất dữ liệu đã thất bại. Vui lòng thử lại.",
"Expand": "Mở rộng",
"Expand All": "Mở rộng tất cả",
"Collapse": "Thu gọn",
"Collapse All": "Thu gọn tất cả",
"Expand Next Level": "Mở rộng cấp độ tiếp theo",
"Expand next level": "Mở rộng cấp độ tiếp theo",
"Expert": "Chuyên gia",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "đã xóa thành công",
"disable_clearing_report_download_description": "Tắt thế hệ ISR trong quá trình hóa thạch",
"enable_auto_set_ecc_status_description": "Bật trạng thái tự động đặt ECC",
"Enable Linked Projects Display": "Bật hiển thị dự án được liên kết",
"enable_linked_projects_display": "Bật hiển thị dự án được liên kết trong các dự án",
"entries": "mục",
"external urls": "url bên ngoài",
"force_update_enabled_description": "Bật tính năng cập nhật lực",
Expand Down
6 changes: 6 additions & 0 deletions messages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "搜索结果将显示与输入完全匹配的元素。\n相当于在搜索关键字周围使用 (\")。应用于名称。",
"Excel report generation has started": "Excel 报告生成已开始。\n完成后,我们将向您发送一封包含下载链接的电子邮件!",
"Export report generation has failed": "导出电子表格生成失败,请重试。",
"Expand": "展开",
"Expand All": "全部展开",
"Collapse": "折叠",
"Collapse All": "全部折叠",
"Expand Next Level": "展开下一个级别",
"Expand next level": "扩展下一个级别",
"Expert": "专家",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "成功删除",
"disable_clearing_report_download_description": "禁用ISR生成的效力过程",
"enable_auto_set_ecc_status_description": "启用自动设置ECC状态",
"Enable Linked Projects Display": "启用关联项目显示",
"enable_linked_projects_display": "在项目中启用关联项目显示",
"entries": "条目",
"external urls": "外部网址",
"force_update_enabled_description": "启用力更新功能",
Expand Down
6 changes: 6 additions & 0 deletions messages/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@
"Exact_Match_Info": "搜索結果將顯示與輸入完全匹配的元素。相當於在搜索關鍵字周圍使用 (\")。應用於名稱。",
"Excel report generation has started": "Excel 報表產生已開始。\n完成後,我們將向您發送一封包含下載連結的電子郵件!",
"Export report generation has failed": "匯出試算表產生失敗,請再試一次。",
"Expand": "展開",
"Expand All": "全部展開",
"Collapse": "摺疊",
"Collapse All": "全部摺疊",
"Expand Next Level": "展開下一個級別",
"Expand next level": "擴展下一個級別",
"Expert": "專家",
Expand Down Expand Up @@ -1588,6 +1592,8 @@
"deleted successfully": "成功刪除",
"disable_clearing_report_download_description": "禁用ISR生成的效力過程",
"enable_auto_set_ecc_status_description": "啟用自動設置ECC狀態",
"Enable Linked Projects Display": "啟用關聯項目顯示",
"enable_linked_projects_display": "在項目中啟用關聯項目顯示",
"entries": "項目",
"external urls": "外部 urls",
"force_update_enabled_description": "啟用力更新功能",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { useTranslations } from 'next-intl'
import { PageButtonHeader, PageSpinner, PillsInput } from 'next-sw360'
import { type JSX, useCallback, useEffect, useState } from 'react'
import OnOffSwitch from '@/app/[locale]/admin/configurations/components/OnOffSwitch'
import { useUiConfigContext } from '@/contexts'
import {
ConfigurationContainers,
ProcessedUiConfig,
Expand All @@ -30,6 +31,7 @@ const FrontEndConfigs = (): JSX.Element => {
const [currentUiConfig, setCurrentUiConfig] = useState<UiConfiguration | undefined>(undefined)
const [arrayKeyStates, setArrayKeyStates] = useState<ProcessedUiConfig>({} as ProcessedUiConfig)
const { status } = useSession()
const { refreshConfig } = useUiConfigContext()
const apiEndpoint = `configurations/container/${ConfigurationContainers.UI_CONFIGURATION}`

useEffect(() => {
Expand Down Expand Up @@ -80,6 +82,7 @@ const FrontEndConfigs = (): JSX.Element => {
const response = await ApiUtils.PATCH(apiEndpoint, currentUiConfig, session.user.access_token)
if (response.status == StatusCodes.OK) {
MessageService.success(t('Updated frontend configurations successfully'))
refreshConfig()
} else if (response.status == StatusCodes.UNAUTHORIZED) {
await signOut()
} else {
Expand Down Expand Up @@ -411,6 +414,21 @@ const FrontEndConfigs = (): JSX.Element => {
</td>
<td>{t('ui_rest_apitoken_generator_enable')}</td>
</tr>
<tr id='enable-linked-projects-display'>
<td className='align-middle fw-bold'>{t('Enable Linked Projects Display')}</td>
<td>
<OnOffSwitch
size={25}
setCurrentUiConfig={setCurrentUiConfig}
checked={
currentUiConfig[UIConfigKeys.UI_ENABLE_LINKED_PROJECTS_DISPLAY] ===
'true'
}
propKey={UIConfigKeys.UI_ENABLE_LINKED_PROJECTS_DISPLAY}
/>
</td>
<td>{t('enable_linked_projects_display')}</td>
</tr>
</tbody>
</table>
</>
Expand Down
Loading
Loading