TagSpaces is an offline, open source, document manager with tagging support
add pro
Stanimir Marinov2d764b736ad8
diff --git a/app/components/EntryProperties.js b/app/components/EntryProperties.jsindex b1ac97c0d..78f97861d 100644--- a/app/components/EntryProperties.js+++ b/app/components/EntryProperties.js@@ -43,6 +43,8 @@ import TagsSelect from './TagsSelect';import TransparentBackground from './TransparentBackground';import { replaceThumbnailURLPromise } from '../services/thumbsgenerator';+// const FileThumbChooseDialog = Pro && Pro.UI ? Pro.UI.FileThumbChooseDialog : false;+const styles = theme => ({entryProperties: {overflowY: AppConfig.isFirefox ? 'auto' : 'overlay',@@ -786,31 +788,31 @@ class EntryProperties extends Component<Props, State> {</FormControl></div>- <div className={classes.entryItem}>- <div className={classes.fluidGrid}>- <Typography- variant="caption"- className={classes.entryLabel}- style={{- backgroundSize: 'cover',- backgroundImage: thumbPathUrl,- height: 150,- width: '25%'- }}- >- {i18n.t('core:filePreview')}- </Typography>- <Button- color="primary"- styles={{ paddingBottom: 0 }}- // disabled={isEditPreview}- className={classes.button}- onClick={this.toggleThumbFilesDialog}- >- {i18n.t('core:edit')}- </Button>+ {Pro && (+ <div className={classes.entryItem}>+ <div className={classes.fluidGrid}>+ <Typography+ variant="caption"+ className={classes.entryLabel}+ style={{+ backgroundSize: 'cover',+ backgroundImage: thumbPathUrl,+ height: 150,+ width: '25%'+ }}+ />+ <Button+ color="primary"+ styles={{ paddingBottom: 0 }}+ // disabled={isEditPreview}+ className={classes.button}+ onClick={this.toggleThumbFilesDialog}+ >+ {i18n.t('core:edit')}+ </Button>+ </div></div>- </div>+ )}</Grid><EntryTagMenudiff --git a/app/components/dialogs/FileThumbChooseDialog.js b/app/components/dialogs/FileThumbChooseDialog.jsindex 0573d8fb4..ef94ef3b3 100644--- a/app/components/dialogs/FileThumbChooseDialog.js+++ b/app/components/dialogs/FileThumbChooseDialog.js@@ -154,7 +154,7 @@ const FileThumbChooseDialog = (props: Props) => {disabled={disableConfirmButton}color="primary">- {i18n.t('core:setThumbButton')}+ {i18n.t('core:ok')}</Button></DialogActions>);