TagSpaces is an offline, open source, document manager with tagging support
chore: improve usability of stored searches
Ilian Sapundshievee5a2a0d0ec8
diff --git a/app/components/SearchPopover.tsx b/app/components/SearchPopover.tsxindex 30566ba9e..b08f4eb34 100644--- a/app/components/SearchPopover.tsx+++ b/app/components/SearchPopover.tsx@@ -976,34 +976,32 @@ const SearchPopover = (props: Props) => {</Select></ProTooltip></FormControl>- <FormControl className={classes.formControl}>- <ButtonGroup fullWidth style={{ justifyContent: 'center' }}>- {Pro && (- <>+ {Pro && (+ <FormControl className={classes.formControl}>+ <ButtonGroup fullWidth style={{ justifyContent: 'center' }}>+ <Button+ variant="outlined"+ color="secondary"+ size="small"+ style={{ flex: 1 }}+ onClick={() => saveSearch()}+ >+ {i18n.t('searchSaveBtn')}+ </Button>+ {props.searchQuery.uuid && (<Buttonvariant="outlined"color="secondary"size="small"style={{ flex: 1 }}- onClick={() => saveSearch()}+ onClick={() => saveSearch(false)}>- {i18n.t('searchSaveBtn')}+ {i18n.t('searchEditBtn')}</Button>- {props.searchQuery.uuid && (- <Button- variant="outlined"- color="secondary"- size="small"- style={{ flex: 1 }}- onClick={() => saveSearch(false)}- >- {i18n.t('searchEditBtn')}- </Button>- )}- </>- )}- </ButtonGroup>- </FormControl>+ )}+ </ButtonGroup>+ </FormControl>+ )}{SaveSearchDialog && saveSearchDialogOpened !== undefined && (<SaveSearchDialogdiff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex e3cf16a93..1f5d07a7e 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -550,8 +550,8 @@"noSavedSearches": "No stored search queries found","notImportedSearches": "Searches will not be imported","searchExist": "Search already exist, it will be replaced with this one",- "searchSaveBtn": "Save Search",- "searchEditBtn": "Edit Search",+ "searchSaveBtn": "Create Stored Search",+ "searchEditBtn": "Update Stored Search","searchQueryName": "Search Query Name","createNewSavedSearchTitle": "Create Search Query","editSavedSearchTitle": "Edit Search Query",