TagSpaces is an offline, open source, document manager with tagging support
polish: ui improvements in the search and tmb generation snackbar
Ilian Sapundshievae61e3ecbc88
diff --git a/app/components/Search.tsx b/app/components/Search.tsxindex e74449795..37254b37d 100644--- a/app/components/Search.tsx+++ b/app/components/Search.tsx@@ -555,12 +555,20 @@ const Search = React.memo((props: Props) => {value={forceIndexing}><ToggleButton value={false}>- <Tooltip arrow title={i18n.t('')}>+ <Tooltip+ arrow+ title={i18n.t(+ 'Will the use the already create index, if it is not expired'+ )}+ ><div>{i18n.t('default index')}</div></Tooltip></ToggleButton><ToggleButton value={true} data-tid="forceIndexingTID">- <Tooltip arrow title={i18n.t('')}>+ <Tooltip+ arrow+ title={i18n.t('Will force the recreation of the index')}+ ><div>{i18n.t('force re-indexing')}</div></Tooltip></ToggleButton>diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsxindex 3cc51f48a..5af923b4a 100644--- a/app/containers/MainPage.tsx+++ b/app/containers/MainPage.tsx@@ -686,11 +686,11 @@ const MainPage = (props: Props) => {</IconButton>]}/>- <Snackbar+ {/* <SnackbaranchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}open={props.isGeneratingThumbs}autoHideDuration={undefined}- message="Loading or generating thumbnails..."+ message={i18n.t('core:loadingOrGeneratingThumbnails')}action={[<IconButtonkey="closeButton"@@ -701,7 +701,7 @@ const MainPage = (props: Props) => {<CloseIcon /></IconButton>]}- />+ /> */}<SnackbaranchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}open={props.isIndexing}diff --git a/app/reducers/app.ts b/app/reducers/app.tsindex a72640347..af3eb4674 100644--- a/app/reducers/app.ts+++ b/app/reducers/app.ts@@ -1046,10 +1046,33 @@ export const actions = {type: types.UPDATE_THUMB_URLS,tmbURLs}),- setGeneratingThumbnails: (isGeneratingThumbs: boolean) => ({- type: types.SET_GENERATING_THUMBNAILS,- isGeneratingThumbs- }),+ // setGeneratingThumbnails: (isGeneratingThumbs: boolean) => ({+ // type: types.SET_GENERATING_THUMBNAILS,+ // isGeneratingThumbs+ // }),+ setGeneratingThumbnails: (isGeneratingThumbs: boolean) => (+ dispatch: (actions: Object) => void+ ) => {+ dispatch(actions.hideNotifications());+ if (isGeneratingThumbs) {+ dispatch(+ actions.showNotification(+ i18n.t('core:loadingOrGeneratingThumbnails'),+ 'info',+ true+ )+ );+ } else {+ console.log('Thumbnail generation ready');+ // dispatch(+ // actions.showNotification(+ // i18n.t('Thumbnail ready'),+ // 'info',+ // true+ // )+ // );+ }+ },/* setLastSelectedEntry: (entryPath: string | null) => ({type: types.SET_LAST_SELECTED_ENTRY,entryPath