Skip to content

Commit

Permalink
Merge pull request #73 from CybercentreCanada/hotfix/archive_tweaks
Browse files Browse the repository at this point in the history
Hotfix/archive tweaks (dev)
  • Loading branch information
cccs-sgaron authored Apr 29, 2021
2 parents 64c0d17 + 6f43fcd commit 410983a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/components/routes/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,16 @@ function Search({ index }: SearchProps) {
buttons={[
{
icon:
query && query.get('use_archive') === 'false' ? (
<FolderOutlinedIcon fontSize={downSM ? 'small' : 'default'} />
) : (
query && query.get('use_archive') === 'true' ? (
<FolderIcon fontSize={downSM ? 'small' : 'default'} />
) : (
<FolderOutlinedIcon fontSize={downSM ? 'small' : 'default'} />
),
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}`);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/locales/fr/search.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 410983a

Please sign in to comment.