Skip to content

Commit

Permalink
fix(frontend): rename "Show metadata"
Browse files Browse the repository at this point in the history
related to 2730ac9
  • Loading branch information
saihaj authored and Harjot1Singh committed May 15, 2020
1 parent 87139d7 commit b68faea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/frontend/src/Controller/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const Search = ( { updateFocus, register, focused } ) => {
const recommendedSources = useContext( RecommendedSourcesContext )
const { local: {
sources,
search: { showResultCaptions, resultTransliterationLanguage, resultTranslationLanguage },
search: { showResultCitations, resultTransliterationLanguage, resultTranslationLanguage },
} = {} } = useContext( SettingsContext )

/**
Expand Down Expand Up @@ -224,7 +224,7 @@ const Search = ( { updateFocus, register, focused } ) => {

</span>

{showResultCaptions
{showResultCitations
&& (
<span className="citation">
<span className="author">
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const OPTIONS = {
disconnectionEvents: { name: 'Disconnections', icon: faPowerOff, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.global },
downloadEvents: { name: 'Update Download', icon: faDownload, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.global },
downloadedEvents: { name: 'Update Download Complete', icon: faServer, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.global },
showResultCaptions: { name: 'Show Captions', icon: faTags, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.local },
showResultCitations: { name: 'Show Citations', icon: faTags, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.local },
resultTranslationLanguage: {
name: 'Translation',
icon: faClosedCaptioning,
Expand Down Expand Up @@ -255,7 +255,7 @@ export const DEFAULT_OPTIONS = {
search: {
resultTranslationLanguage: OPTIONS.resultTranslationLanguage.values[ 0 ].value,
resultTransliterationLanguage: OPTIONS.resultTransliterationLanguage.values[ 0 ].value,
showResultCaptions: false,
showResultCitations: false,
},
},
// Special serverside settings
Expand Down

0 comments on commit b68faea

Please sign in to comment.