Skip to content

Commit

Permalink
fix(frontend): rename "show metadata" option and rearrange the order
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj authored and Harjot1Singh committed May 15, 2020
1 parent 82979a6 commit 87139d7
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: { showResultMetadata, resultTransliterationLanguage, resultTranslationLanguage },
search: { showResultCaptions, resultTransliterationLanguage, resultTranslationLanguage },
} = {} } = useContext( SettingsContext )

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

</span>

{showResultMetadata
{showResultCaptions
&& (
<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 },
showResultMetadata: { name: 'Show Metadata', icon: faTags, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.local },
showResultCaptions: { name: 'Show Captions', icon: faTags, type: OPTION_TYPES.toggle, privacy: PRIVACY_TYPES.local },
resultTranslationLanguage: {
name: 'Translation',
icon: faClosedCaptioning,
Expand Down Expand Up @@ -253,9 +253,9 @@ export const DEFAULT_OPTIONS = {
private: false,
},
search: {
showResultMetadata: false,
resultTranslationLanguage: OPTIONS.resultTranslationLanguage.values[ 0 ].value,
resultTransliterationLanguage: OPTIONS.resultTransliterationLanguage.values[ 0 ].value,
showResultCaptions: false,
},
},
// Special serverside settings
Expand Down

0 comments on commit 87139d7

Please sign in to comment.