Skip to content

Commit 0479805

Browse files
committed
[frontend] Delete a custom view
1 parent 9f73118 commit 0479805

File tree

16 files changed

+115
-8
lines changed

16 files changed

+115
-8
lines changed

opencti-platform/opencti-front/lang/front/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "Möchten Sie diesen CSV-Feed löschen?",
12421242
"Do you want to delete this CSV ingester?": "Möchten Sie diesen CSV-Importer löschen?",
12431243
"Do you want to delete this CSV mapper?": "Möchten Sie diesen CSV-Mapper löschen?",
1244+
"Do you want to delete this custom view?": "Möchten Sie diese benutzerdefinierte Ansicht löschen?",
12441245
"Do you want to delete this dashboard?": "Möchten Sie dieses Dashboard löschen?",
12451246
"Do you want to delete this data component?": "Möchten Sie diese Datenkomponente löschen?",
12461247
"Do you want to delete this data source?": "Möchten Sie diese Datenquelle löschen?",

opencti-platform/opencti-front/lang/front/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "Do you want to delete this CSV Feed?",
12421242
"Do you want to delete this CSV ingester?": "Do you want to delete this CSV ingester?",
12431243
"Do you want to delete this CSV mapper?": "Do you want to delete this CSV mapper?",
1244+
"Do you want to delete this custom view?": "Do you want to delete this custom view?",
12441245
"Do you want to delete this dashboard?": "Do you want to delete this dashboard?",
12451246
"Do you want to delete this data component?": "Do you want to delete this data component?",
12461247
"Do you want to delete this data source?": "Do you want to delete this data source?",

opencti-platform/opencti-front/lang/front/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "¿Desea eliminar este feed CSV?",
12421242
"Do you want to delete this CSV ingester?": "¿Quieres eliminar este importador CSV?",
12431243
"Do you want to delete this CSV mapper?": "¿Desea eliminar este mapeador CSV?",
1244+
"Do you want to delete this custom view?": "¿Desea eliminar esta vista personalizada?",
12441245
"Do you want to delete this dashboard?": "¿Desea eliminar este cuadro de mandos?",
12451246
"Do you want to delete this data component?": "¿Quieres borrar este componente de datos?",
12461247
"Do you want to delete this data source?": "¿Quieres eliminar esta fuente de datos?",

opencti-platform/opencti-front/lang/front/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "Voulez-vous supprimer ce flux CSV ?",
12421242
"Do you want to delete this CSV ingester?": "Voulez-vous supprimer cet ingéreur CSV ?",
12431243
"Do you want to delete this CSV mapper?": "Voulez-vous supprimer ce mappeur CSV ?",
1244+
"Do you want to delete this custom view?": "Voulez-vous supprimer cette vue personnalisée ?",
12441245
"Do you want to delete this dashboard?": "Voulez-vous supprimer ce tableau de bord ?",
12451246
"Do you want to delete this data component?": "Souhaitez-vous supprimer ce composant de données ?",
12461247
"Do you want to delete this data source?": "Souhaitez-vous supprimer cette source de données ?",

opencti-platform/opencti-front/lang/front/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "Vuoi cancellare questo Feed CSV?",
12421242
"Do you want to delete this CSV ingester?": "Vuoi eliminare questo ingester CSV?",
12431243
"Do you want to delete this CSV mapper?": "Vuoi eliminare questo mapper CSV?",
1244+
"Do you want to delete this custom view?": "Si desidera eliminare questa vista personalizzata?",
12441245
"Do you want to delete this dashboard?": "Vuoi eliminare questa dashboard?",
12451246
"Do you want to delete this data component?": "Vuoi eliminare questo componente dati?",
12461247
"Do you want to delete this data source?": "Vuoi eliminare questa fonte dati?",

opencti-platform/opencti-front/lang/front/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "このCSVフィードを削除しますか?",
12421242
"Do you want to delete this CSV ingester?": "このCSVインガスターを削除しますか?",
12431243
"Do you want to delete this CSV mapper?": "このCSVマッパーを削除しますか?",
1244+
"Do you want to delete this custom view?": "このカスタムビューを削除しますか?",
12441245
"Do you want to delete this dashboard?": "このダッシュボードを削除しますか?",
12451246
"Do you want to delete this data component?": "このデータコンポーネントを削除しますか?",
12461247
"Do you want to delete this data source?": "このデータ ソースを削除しますか?",

opencti-platform/opencti-front/lang/front/ko.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "이 CSV 피드를 삭제하시겠습니까?",
12421242
"Do you want to delete this CSV ingester?": "이 CSV 인제스터를 삭제하시겠습니까?",
12431243
"Do you want to delete this CSV mapper?": "이 CSV 매퍼를 삭제하시겠습니까?",
1244+
"Do you want to delete this custom view?": "이 사용자 지정 보기를 삭제하시겠습니까?",
12441245
"Do you want to delete this dashboard?": "이 대시보드를 삭제하시겠습니까?",
12451246
"Do you want to delete this data component?": "이 데이터 구성 요소를 삭제하시겠습니까?",
12461247
"Do you want to delete this data source?": "이 데이터 소스를 삭제하시겠습니까?",

opencti-platform/opencti-front/lang/front/ru.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "Вы хотите удалить этот CSV-канал?",
12421242
"Do you want to delete this CSV ingester?": "Вы хотите удалить этот CSV-загрузчик?",
12431243
"Do you want to delete this CSV mapper?": "Вы хотите удалить этот CSV-маппер?",
1244+
"Do you want to delete this custom view?": "Хотите ли вы удалить это пользовательское представление?",
12441245
"Do you want to delete this dashboard?": "Вы хотите удалить этот дашборд?",
12451246
"Do you want to delete this data component?": "Хотите ли вы удалить этот компонент данных?",
12461247
"Do you want to delete this data source?": "Хотите ли вы удалить этот источник данных?",

opencti-platform/opencti-front/lang/front/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@
12411241
"Do you want to delete this CSV Feed?": "您想删除此 CSV Feed 吗?",
12421242
"Do you want to delete this CSV ingester?": "您要删除此CSV导入程序吗?",
12431243
"Do you want to delete this CSV mapper?": "您要删除此CSV映射吗?",
1244+
"Do you want to delete this custom view?": "要删除此自定义视图吗?",
12441245
"Do you want to delete this dashboard?": "是否要删除此仪表板?",
12451246
"Do you want to delete this data component?": "是否要删除此数据组件?",
12461247
"Do you want to delete this data source?": "你想删除这个数据源吗?",

opencti-platform/opencti-front/src/private/components/custom_views/CustomViewRedirector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ interface CustomViewRedirectorProps {
1010
}
1111

1212
const renderMatch = (info: SlugRedirectHandlerPageInfo) =>
13-
<CustomView customViewId={(info as CustomViewsInfo[number]).id} />;
13+
<CustomView customViewId={(info as CustomViewsInfo).id} />;
1414

1515
const CustomViewRedirector = ({ entityType, Fallback }: CustomViewRedirectorProps) => {
1616
const { customViews } = useCustomViews(entityType);
1717
const pagesInfo = useMemo(() => customViews.reduce(
1818
(acc, customViewInfo) => ({
1919
...acc,
2020
[customViewInfo.id.replaceAll('-', '')]: customViewInfo,
21-
}), {} as Record<string, CustomViewsInfo[number]>,
21+
}), {} as Record<string, CustomViewsInfo>,
2222
), [customViews]);
2323
return (
2424
<SlugRedirectHandler

0 commit comments

Comments
 (0)