From 6f43fcd382c60aa8d6cfe4cbdc70c460c67f53b0 Mon Sep 17 00:00:00 2001 From: Steve Garon Date: Thu, 29 Apr 2021 17:16:42 +0000 Subject: [PATCH] Switch default search not to use archive --- src/components/routes/search.tsx | 10 +++++----- src/locales/fr/search.json | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/routes/search.tsx b/src/components/routes/search.tsx index 1bbce9bc1..31acbc88a 100644 --- a/src/components/routes/search.tsx +++ b/src/components/routes/search.tsx @@ -231,16 +231,16 @@ function Search({ index }: SearchProps) { buttons={[ { icon: - query && query.get('use_archive') === 'false' ? ( - - ) : ( + query && query.get('use_archive') === 'true' ? ( + ) : ( + ), tooltip: - query && query.get('use_archive') === 'false' ? t('use_archive.turn_on') : t('use_archive.turn_off'), + query && query.get('use_archive') === 'true' ? t('use_archive.turn_off') : t('use_archive.turn_on'), props: { onClick: () => { - query.set('use_archive', query.get('use_archive') === 'false'); + query.set('use_archive', !query.has('use_archive') ? 'true' : query.get('use_archive') === 'false'); history.push(`${location.pathname}?${query.getDeltaString()}${location.hash}`); } } diff --git a/src/locales/fr/search.json b/src/locales/fr/search.json index d45ba8197..c24c98020 100644 --- a/src/locales/fr/search.json +++ b/src/locales/fr/search.json @@ -1,7 +1,7 @@ { "alert": "Alerte", "available": "disponible", - "file": "Ficher", + "file": "Fichier", "focus_search": "Focus sur l'onglet sélectionné", "header.accepts": "Type de fichier", "header.attack_id": "IDs Att&ck", @@ -11,7 +11,7 @@ "header.created": "Temps de création", "header.description": "Description", "header.enabled": "Activé", - "header.filetype": "Type de fichers", + "header.filetype": "Type de fichiers", "header.hit_count": "Fois vue", "header.id": "ID", "header.last_hit": "Dernière fois",