diff --git a/src/App.vue b/src/App.vue index 1500921d..bba7a2a2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -101,19 +101,27 @@ export default { } this.axios.interceptors.response.use(null, (error) => { + if (!error.response) { + this.$toastr.e( + this.$t('condition.unsuccessful_action'), + this.$t('condition.http_request_error'), + ); + return Promise.reject(error); + } + const contentType = + (error.response.headers && error.response.headers['content-type']) || + ''; // On error status codes (4xx - 5xx), display a toast with either: // * The problem title and detail in case of an RFC 9457 response // * the HTTP status code and text if (error.response.status >= 400 && error.response.status < 500) { - if ( - error.response.headers['content-type'] === 'application/problem+json' - ) { + if (contentType.includes('application/problem+json')) { this.$toastr.w(error.response.data.detail, error.response.data.title); } else if ( error.response.status === 400 && - error.response.headers['content-type'] === 'application/json' && - error.response.data && + contentType.includes('application/json') && Array.isArray(error.response.data) && + error.response.data.length > 0 && error.response.data[0].hasOwnProperty('invalidValue') ) { let validationError = error.response.data @@ -130,9 +138,7 @@ export default { ); } } else { - if ( - error.response.headers['content-type'] === 'application/problem+json' - ) { + if (contentType.includes('application/problem+json')) { this.$toastr.w(error.response.data.detail, error.response.data.title); } else { this.$toastr.e( diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index 17fcf098..2ff5f252 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json @@ -628,6 +628,7 @@ "identifier": "Kennung", "identifier_type": "Kennungstyp", "identity": "Identität", + "identity_fields_set": null, "in_triage": "In Triage", "inactive": "Inaktiv", "inactive_active_children": "Das Projekt kann nicht auf inaktiv gesetzt werden, wenn es aktive untergeordnete Projekte hat", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Inventar", "inventory_with_vulnerabilities": "Inventarisierung mit Schwachstellen", + "is_latest_tooltip": null, "item": "Element", "justification": "Begründung", "justification_tooltip": "Die Begründung, warum der Auswirkungsanalysestatus „Nicht betroffen“ lautete", @@ -716,6 +718,7 @@ "operational_risk": "Betriebsrisiko", "operator": "Operator", "operator_help": null, + "optional": null, "osi_approved": "OSI-Zulassung", "outdated_only": "Nur veraltet", "overview": "Überblick", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Komponente entfernen", "reported_by": "Berichtet von", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Eine Komponentenkennung ist erforderlich", "required_component_name": "Der Komponentenname ist erforderlich", "required_component_version": "Die Komponentenversion ist erforderlich", @@ -972,6 +977,7 @@ "required_license_name": "Der Lizenzname ist erforderlich", "required_project_name": "Der Projektname ist erforderlich", "required_service_name": "Der Dienstname ist erforderlich", + "required_team": null, "required_vulnerability_vuln_id": "Eine eindeutige Schwachstellenkennung ist erforderlich", "requires_configuration": "Erfordert Konfiguration", "requires_dependency": "Erfordert Abhängigkeit", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index c2bdab9f..13f1d816 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -628,6 +628,7 @@ "identifier": "Identifier", "identifier_type": "Identifier Type", "identity": "Identity", + "identity_fields_set": "{count} field(s) set", "in_triage": "In Triage", "inactive": "Inactive", "inactive_active_children": "The project cannot be set to inactive if it has active children", @@ -647,6 +648,7 @@ "internal_status": "Component classified as internal", "inventory": "Inventory", "inventory_with_vulnerabilities": "Inventory with Vulnerabilities", + "is_latest_tooltip": "Marks this version as the latest release of the project", "item": "Item", "justification": "Justification", "justification_tooltip": "The rationale of why the impact analysis state was asserted to be \"Not Affected\"", @@ -716,6 +718,7 @@ "operational_risk": "Operational Risk", "operator": "Operator", "operator_help": "ANY = any condition matches; ALL = every condition must match", + "optional": "optional", "osi_approved": "OSI Approved", "outdated_only": "Outdated only", "overview": "Overview", @@ -964,6 +967,8 @@ "relative_seconds_ago": "{n}s ago", "remove_component": "Remove Component", "reported_by": "Reported By", + "required_classifier": "A classifier is required", + "required_collection_logic": "A collection logic is required", "required_component_identifier": "A component identifier is required", "required_component_name": "The component name is required", "required_component_version": "The component version is required", @@ -972,6 +977,7 @@ "required_license_name": "The license name is required", "required_project_name": "The project name is required", "required_service_name": "The service name is required", + "required_team": "At least one team must be selected", "required_vulnerability_vuln_id": "A unique vulnerability identifier is required", "requires_configuration": "Requires configuration", "requires_dependency": "Requires dependency", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index 4eff7f21..d67ed6fa 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -628,6 +628,7 @@ "identifier": "Identificador", "identifier_type": "Tipo de identificador", "identity": "Identidad", + "identity_fields_set": null, "in_triage": "En triaje", "inactive": "Inactivo", "inactive_active_children": "El proyecto no se puede configurar como inactivo si tiene hijos activos", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Inventario", "inventory_with_vulnerabilities": "Inventario con vulnerabilidades", + "is_latest_tooltip": null, "item": "Elemento", "justification": "Justificación", "justification_tooltip": "El motivo por el que se afirmó que el estado del análisis de impacto era \"No afectado\"", @@ -716,6 +718,7 @@ "operational_risk": "Riesgo operacional", "operator": "Operador", "operator_help": null, + "optional": null, "osi_approved": "Aprobado por OSI", "outdated_only": "Sólo anticuado", "overview": "Descripción general", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Quitar componente", "reported_by": "Reportado por", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Se requiere un identificador de componente", "required_component_name": "El nombre del componente es obligatorio.", "required_component_version": "La versión del componente es obligatoria.", @@ -972,6 +977,7 @@ "required_license_name": "El nombre de la licencia es obligatorio.", "required_project_name": "El nombre del proyecto es obligatorio.", "required_service_name": "El nombre del servicio es obligatorio.", + "required_team": null, "required_vulnerability_vuln_id": "Se requiere un identificador de vulnerabilidad único", "requires_configuration": "Requiere configuración", "requires_dependency": "Requiere dependencia", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 3029ad64..731b1fef 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -628,6 +628,7 @@ "identifier": "Identifiant", "identifier_type": "Type d'identifiant", "identity": "Identité", + "identity_fields_set": null, "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", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Inventaire", "inventory_with_vulnerabilities": "Inventaire avec vulnérabilités", + "is_latest_tooltip": null, "item": "Élément", "justification": "Justification", "justification_tooltip": "La raison pour laquelle l'état de l'analyse d'impact a été déclaré « Non affecté »", @@ -716,6 +718,7 @@ "operational_risk": "Risque opérationnel", "operator": "Opérateur", "operator_help": null, + "optional": null, "osi_approved": "Approuvée par l'OSI", "outdated_only": "Obsolète seulement", "overview": "Aperçu", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Supprimer un composant", "reported_by": "Rapporté par", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Un identifiant de composant est requis", "required_component_name": "Le nom du composant est obligatoire", "required_component_version": "La version du composant est requise", @@ -972,6 +977,7 @@ "required_license_name": "Le nom de la licence est obligatoire", "required_project_name": "Le nom du projet est obligatoire", "required_service_name": "Le nom du service est obligatoire", + "required_team": null, "required_vulnerability_vuln_id": "Un identifiant de vulnérabilité unique est requis", "requires_configuration": "Nécessite une configuration", "requires_dependency": "Nécessite une dépendance", diff --git a/src/i18n/locales/hi.json b/src/i18n/locales/hi.json index 035040a1..87dca83a 100644 --- a/src/i18n/locales/hi.json +++ b/src/i18n/locales/hi.json @@ -628,6 +628,7 @@ "identifier": "पहचानकर्ता", "identifier_type": "पहचानकर्ता प्रकार", "identity": "पहचान", + "identity_fields_set": null, "in_triage": "ट्राइएज में", "inactive": "निष्क्रिय", "inactive_active_children": "यदि प्रोजेक्ट में सक्रिय बच्चे हैं तो उसे निष्क्रिय नहीं किया जा सकता", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "भंडार", "inventory_with_vulnerabilities": "कमज़ोरियों वाली सूची", + "is_latest_tooltip": null, "item": "वस्तु", "justification": "औचित्य", "justification_tooltip": "प्रभाव विश्लेषण स्थिति को \"प्रभावित नहीं\" क्यों कहा गया, इसका औचित्य", @@ -716,6 +718,7 @@ "operational_risk": "परिचालनात्मक जोखिम", "operator": "ऑपरेटर", "operator_help": null, + "optional": null, "osi_approved": "ओएसआई स्वीकृत", "outdated_only": "केवल पुराना", "overview": "अवलोकन", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "घटक हटाएँ", "reported_by": "के द्वारा रिपोर्ट किया गया", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "घटक पहचानकर्ता आवश्यक है", "required_component_name": "घटक का नाम आवश्यक है", "required_component_version": "घटक संस्करण आवश्यक है", @@ -972,6 +977,7 @@ "required_license_name": "लाइसेंस का नाम आवश्यक है", "required_project_name": "प्रोजेक्ट का नाम आवश्यक है", "required_service_name": "सेवा का नाम आवश्यक है", + "required_team": null, "required_vulnerability_vuln_id": "एक अद्वितीय भेद्यता पहचानकर्ता आवश्यक है", "requires_configuration": "कॉन्फ़िगरेशन की आवश्यकता है", "requires_dependency": "निर्भरता की आवश्यकता है", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 131b0c74..33f2456b 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -628,6 +628,7 @@ "identifier": "Identificatore", "identifier_type": "Tipo di identificatore", "identity": "Identità", + "identity_fields_set": null, "in_triage": "Nel triage", "inactive": "Inattivo", "inactive_active_children": "Il progetto non può essere impostato su inattivo se ha figli attivi", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Inventario", "inventory_with_vulnerabilities": "Inventario con vulnerabilità", + "is_latest_tooltip": null, "item": "Elemento", "justification": "Giustificazione", "justification_tooltip": "La motivazione per cui lo stato dell'analisi d'impatto è stato dichiarato \"Non interessato\"", @@ -716,6 +718,7 @@ "operational_risk": "Rischio operativo", "operator": "Operatore", "operator_help": null, + "optional": null, "osi_approved": "Approvato dall'OSI", "outdated_only": "Solo obsoleto", "overview": "Panoramica", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Rimuovi componente", "reported_by": "Segnalato da", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "È obbligatorio un identificatore del componente", "required_component_name": "Il nome del componente è obbligatorio", "required_component_version": "La versione del componente è obbligatoria", @@ -972,6 +977,7 @@ "required_license_name": "Il nome della licenza è obbligatorio", "required_project_name": "Il nome del progetto è obbligatorio", "required_service_name": "Il nome del servizio è obbligatorio", + "required_team": null, "required_vulnerability_vuln_id": "È richiesto un identificatore di vulnerabilità univoco", "requires_configuration": "Richiede configurazione", "requires_dependency": "Richiede dipendenza", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 8912e170..950712fc 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -628,6 +628,7 @@ "identifier": "識別子", "identifier_type": "識別子の種類", "identity": "身元", + "identity_fields_set": null, "in_triage": "トリアージ中", "inactive": "非活性", "inactive_active_children": "アクティブな子プロジェクトがある場合、プロジェクトを非アクティブに設定することはできません。", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "インベントリ", "inventory_with_vulnerabilities": "脆弱性のあるインベントリ", + "is_latest_tooltip": null, "item": "アイテム", "justification": "正当化", "justification_tooltip": "影響分析の状態が「影響を受けない」と主張された理由", @@ -716,6 +718,7 @@ "operational_risk": "運用リスク", "operator": "オペレーター", "operator_help": null, + "optional": null, "osi_approved": "OSI承認", "outdated_only": "古いもののみ", "overview": "概要", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "コンポーネントを削除", "reported_by": "報告者", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "コンポーネント識別子が必要です", "required_component_name": "コンポーネント名は必須です", "required_component_version": "コンポーネントのバージョンが必要です", @@ -972,6 +977,7 @@ "required_license_name": "ライセンス名は必須です", "required_project_name": "プロジェクト名は必須です", "required_service_name": "サービス名は必須です", + "required_team": null, "required_vulnerability_vuln_id": "固有の脆弱性識別子が必要です", "requires_configuration": "設定が必要", "requires_dependency": "依存関係が必要", diff --git a/src/i18n/locales/pl.json b/src/i18n/locales/pl.json index a79b0187..39dd117c 100644 --- a/src/i18n/locales/pl.json +++ b/src/i18n/locales/pl.json @@ -628,6 +628,7 @@ "identifier": "Identyfikator", "identifier_type": "Typ identyfikatora", "identity": "Tożsamość", + "identity_fields_set": null, "in_triage": "W segregacji", "inactive": "Nieaktywny", "inactive_active_children": "Projektu nie można ustawić jako nieaktywnego, jeśli ma aktywne elementy podrzędne", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Spis", "inventory_with_vulnerabilities": "Inwentarz z lukami w zabezpieczeniach", + "is_latest_tooltip": null, "item": "Pozycja", "justification": "Uzasadnienie", "justification_tooltip": "Uzasadnienie, dla którego stwierdzono, że stan analizy wpływu to „Nie ma wpływu”", @@ -716,6 +718,7 @@ "operational_risk": "Ryzyko operacyjne", "operator": "Operator", "operator_help": null, + "optional": null, "osi_approved": "Zatwierdzone przez OSI", "outdated_only": "Tylko nieaktualne", "overview": "Przegląd", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Usuń komponent", "reported_by": "Zgłoszone przez", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Wymagany jest identyfikator komponentu", "required_component_name": "Nazwa komponentu jest wymagana", "required_component_version": "Wymagana jest wersja komponentu", @@ -972,6 +977,7 @@ "required_license_name": "Nazwa licencji jest wymagana", "required_project_name": "Nazwa projektu jest wymagana", "required_service_name": "Nazwa usługi jest wymagana", + "required_team": null, "required_vulnerability_vuln_id": "Wymagany jest unikalny identyfikator podatności", "requires_configuration": "Wymaga konfiguracji", "requires_dependency": "Wymaga zależności", diff --git a/src/i18n/locales/pt-BR.json b/src/i18n/locales/pt-BR.json index 83c413a0..78373547 100644 --- a/src/i18n/locales/pt-BR.json +++ b/src/i18n/locales/pt-BR.json @@ -628,6 +628,7 @@ "identifier": "Identificador", "identifier_type": "Tipo de identificador", "identity": "Identidade", + "identity_fields_set": null, "in_triage": "Em triagem", "inactive": "Inativo", "inactive_active_children": "O projeto não pode ser definido como inativo se tiver filhos ativos", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Inventário", "inventory_with_vulnerabilities": "Inventário com vulnerabilidades", + "is_latest_tooltip": null, "item": "Item", "justification": "Justificação", "justification_tooltip": "A justificativa pela qual o estado da análise de impacto foi declarado como \"Não afetado\"", @@ -716,6 +718,7 @@ "operational_risk": "Risco operacional", "operator": "Operador", "operator_help": null, + "optional": null, "osi_approved": "Aprovado pelo OSI", "outdated_only": "Apenas desatualizado", "overview": "Visão geral", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Remover componente", "reported_by": "Reportado por", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Um identificador de componente é obrigatório", "required_component_name": "O nome do componente é obrigatório", "required_component_version": "A versão do componente é obrigatória", @@ -972,6 +977,7 @@ "required_license_name": "O nome da licença é obrigatório", "required_project_name": "O nome do projeto é obrigatório", "required_service_name": "O nome do serviço é obrigatório", + "required_team": null, "required_vulnerability_vuln_id": "É necessário um identificador de vulnerabilidade exclusivo", "requires_configuration": "Requer configuração", "requires_dependency": "Requer dependência", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index 8002c324..b457a98a 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -628,6 +628,7 @@ "identifier": "Identificador", "identifier_type": "Tipo de identificador", "identity": "Identidade", + "identity_fields_set": null, "in_triage": "Em triagem", "inactive": "Inativo", "inactive_active_children": "O projeto não pode ser definido como inativo se tiver filhos ativos", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Inventário", "inventory_with_vulnerabilities": "Inventário com vulnerabilidades", + "is_latest_tooltip": null, "item": "Item", "justification": "Justificação", "justification_tooltip": "A justificativa pela qual o estado da análise de impacto foi declarado como \"Não afetado\"", @@ -716,6 +718,7 @@ "operational_risk": "Risco operacional", "operator": "Operador", "operator_help": null, + "optional": null, "osi_approved": "Aprovado pelo OSI", "outdated_only": "Apenas desatualizado", "overview": "Visão geral", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Remover componente", "reported_by": "Reportado por", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Um identificador de componente é obrigatório", "required_component_name": "O nome do componente é obrigatório", "required_component_version": "A versão do componente é obrigatória", @@ -972,6 +977,7 @@ "required_license_name": "O nome da licença é obrigatório", "required_project_name": "O nome do projeto é obrigatório", "required_service_name": "O nome do serviço é obrigatório", + "required_team": null, "required_vulnerability_vuln_id": "É necessário um identificador de vulnerabilidade exclusivo", "requires_configuration": "Requer configuração", "requires_dependency": "Requer dependência", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index 223eda16..9488a226 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -628,6 +628,7 @@ "identifier": "Идентификатор", "identifier_type": "Тип идентификатора", "identity": "Идентичность", + "identity_fields_set": null, "in_triage": "На этапе сортировки", "inactive": "Неактивный", "inactive_active_children": "Проект не может быть установлен как неактивный, если у него есть активные дочерние элементы", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Инвентарь", "inventory_with_vulnerabilities": "Инвентарь с уязвимостями", + "is_latest_tooltip": null, "item": "Элемент", "justification": "Обоснование", "justification_tooltip": "Аргументация, почему состояние анализа влияния было определено как «Не затронуто»", @@ -716,6 +718,7 @@ "operational_risk": "Операционный риск", "operator": "Оператор", "operator_help": null, + "optional": null, "osi_approved": "Одобрено OSI", "outdated_only": "Только устаревшие", "overview": "Обзор", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Удалить компонент", "reported_by": "Сообщено", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Необходим идентификатор компонента", "required_component_name": "Необходимо указать название компонента", "required_component_version": "Необходима версия компонента", @@ -972,6 +977,7 @@ "required_license_name": "Необходимо указать название лицензии", "required_project_name": "Необходимо указать название проекта", "required_service_name": "Необходимо указать название сервиса", + "required_team": null, "required_vulnerability_vuln_id": "Необходим уникальный идентификатор уязвимости", "requires_configuration": "Требуется конфигурация", "requires_dependency": "Требуется зависимость", diff --git a/src/i18n/locales/uk-UA.json b/src/i18n/locales/uk-UA.json index b8fddcb7..05f7db37 100644 --- a/src/i18n/locales/uk-UA.json +++ b/src/i18n/locales/uk-UA.json @@ -628,6 +628,7 @@ "identifier": "Ідентифікатор", "identifier_type": "Тип ідентифікатора", "identity": "Ідентичність", + "identity_fields_set": null, "in_triage": "На тріажі", "inactive": "Неактивний", "inactive_active_children": "Проєкт не може бути встановлений як неактивний, якщо він має активних дочірніх елементів", @@ -647,6 +648,7 @@ "internal_status": null, "inventory": "Інвентаризація", "inventory_with_vulnerabilities": "Інвентаризація з уразливостями", + "is_latest_tooltip": null, "item": "Елемент", "justification": "Обґрунтування", "justification_tooltip": "Обґрунтування, чому стан аналізу впливу було визнано \"Не уражений\"", @@ -716,6 +718,7 @@ "operational_risk": "Операційний ризик", "operator": "Оператор", "operator_help": null, + "optional": null, "osi_approved": "Схвалено OSI", "outdated_only": "Тільки застарілі", "overview": "Огляд", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "Видалити компонент", "reported_by": "Повідомлено", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "Потрібен ідентифікатор компонента", "required_component_name": "Назва компонента є обов'язковою", "required_component_version": "Версія компонента є обов'язковою", @@ -972,6 +977,7 @@ "required_license_name": "Назва ліцензії є обов'язковою", "required_project_name": "Назва проєкту є обов'язковою", "required_service_name": "Назва сервісу є обов'язковою", + "required_team": null, "required_vulnerability_vuln_id": "Потрібен унікальний ідентифікатор уразливості", "requires_configuration": "Потрібна конфігурація", "requires_dependency": "Потрібна залежність", diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index b6a70513..5364fec4 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -628,6 +628,7 @@ "identifier": "識別碼", "identifier_type": "識別碼類型", "identity": "身分", + "identity_fields_set": null, "in_triage": "在分類中", "inactive": "停用", "inactive_active_children": "如果專案有啟用子專案,則不能將其設定為停用專案", @@ -647,6 +648,7 @@ "internal_status": "組件分類為內部", "inventory": "清單", "inventory_with_vulnerabilities": "含漏洞的清單", + "is_latest_tooltip": null, "item": "物品", "justification": "理由", "justification_tooltip": "影響分析狀態被斷言為“不受影響”的理由", @@ -716,6 +718,7 @@ "operational_risk": "作業風險", "operator": "運算子", "operator_help": "ANY = 任何條件匹配; ALL = 每個條件都必須匹配", + "optional": null, "osi_approved": "OSI 核准", "outdated_only": "僅顯示過時項目", "overview": "概述", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "移除元件", "reported_by": "報告人", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "需要元件識別碼", "required_component_name": "元件名稱為必填項", "required_component_version": "元件版本為必填項", @@ -972,6 +977,7 @@ "required_license_name": "授權名稱為必填項", "required_project_name": "專案名稱為必填項", "required_service_name": "服務名稱為必填項", + "required_team": null, "required_vulnerability_vuln_id": "需要唯一的漏洞識別碼", "requires_configuration": "需要設定", "requires_dependency": "需要依賴", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index f0979b29..6042fca5 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -628,6 +628,7 @@ "identifier": "标识符", "identifier_type": "标识符类型", "identity": "身份", + "identity_fields_set": null, "in_triage": "处理中", "inactive": "非活跃", "inactive_active_children": "项目包含活跃子项目时无法将其设置为非活跃", @@ -647,6 +648,7 @@ "internal_status": "组件已标记为内部", "inventory": "清单", "inventory_with_vulnerabilities": "存在漏洞的清单", + "is_latest_tooltip": null, "item": "项目", "justification": "理由", "justification_tooltip": "影响分析状态被断言为“不受影响”的理由", @@ -716,6 +718,7 @@ "operational_risk": "运营风险", "operator": "操作人", "operator_help": null, + "optional": null, "osi_approved": "OSI 认证", "outdated_only": "仅过时", "overview": "概览", @@ -964,6 +967,8 @@ "relative_seconds_ago": null, "remove_component": "移除组件", "reported_by": "报告人", + "required_classifier": null, + "required_collection_logic": null, "required_component_identifier": "组件标识符为必填项", "required_component_name": "组件名称为必填项", "required_component_version": "组件版本为必填项", @@ -972,6 +977,7 @@ "required_license_name": "许可证名称为必填项", "required_project_name": "项目名称为必填项", "required_service_name": "服务名称为必填项", + "required_team": null, "required_vulnerability_vuln_id": "漏洞唯一标识符为必填项", "requires_configuration": "需要配置", "requires_dependency": "需要依赖", diff --git a/src/shared/api.json b/src/shared/api.json index 125aea41..52582dd1 100644 --- a/src/shared/api.json +++ b/src/shared/api.json @@ -41,6 +41,7 @@ "URL_POLICY_VIOLATION": "api/v1/violation", "URL_POLICY_VIOLATION_ANALYSIS": "api/v1/violation/analysis", "URL_PROJECT": "api/v1/project", + "URL_PROJECT_CONCISE": "api/v1/project/concise", "URL_REPOSITORY": "api/v1/repository", "URL_SEARCH": "api/v1/search", "URL_SERVICE": "api/v1/service", diff --git a/src/views/portfolio/projects/Project.vue b/src/views/portfolio/projects/Project.vue index a1e26daa..94f68fc8 100644 --- a/src/views/portfolio/projects/Project.vue +++ b/src/views/portfolio/projects/Project.vue @@ -359,7 +359,7 @@ diff --git a/src/views/portfolio/projects/ProjectCreateProjectModal.vue b/src/views/portfolio/projects/ProjectCreateProjectModal.vue index b5e584cb..d0163926 100644 --- a/src/views/portfolio/projects/ProjectCreateProjectModal.vue +++ b/src/views/portfolio/projects/ProjectCreateProjectModal.vue @@ -7,194 +7,211 @@ no-stacking :title="$t('message.create_project')" > - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - +
+ + -
- - + :class="{ 'is-invalid': teamsState === false }" + selectLabel="" + deselectLabel="" + > +
+ {{ $t('message.required_team') }}
- - - - - - - - - - +
+ + +
+ - - - + + + +
+ + -
-
- - + + +