Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: updating translations

Ilian Sapundshiev8e83d16a7da9
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index d5d9784ed..145b563f8 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -683,5 +683,6 @@
"changeBackgroundImage": "Change Background Image",
"noItems": "No items found",
"notAvailable": "Not available",
+ "clearBackground": "Clear background image",
"-": "-"
}
diff --git a/app/locales/en_US/core.json b/app/locales/en_US/core.json
index ed8f2c03a..69e72ea14 100644
--- a/app/locales/en_US/core.json
+++ b/app/locales/en_US/core.json
@@ -683,5 +683,6 @@
"changeBackgroundImage": "Change Background Image",
"noItems": "No items found",
"notAvailable": "Not available",
+ "clearBackground": "Clear background image",
"-": "-"
}
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index c3be2d0a4..556efa3c4 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -179,7 +179,8 @@ function CellContent(props: Props) {
src={
fsEntry.thumbPath +
(props.lastThumbnailImageChange
- ? urlGetDelim(fsEntry.thumbPath) + props.lastThumbnailImageChange
+ ? urlGetDelim(fsEntry.thumbPath) +
+ props.lastThumbnailImageChange
: '')
}
// @ts-ignore
@@ -387,7 +388,8 @@ function CellContent(props: Props) {
src={
fsEntry.thumbPath +
(props.lastThumbnailImageChange
- ? urlGetDelim(fsEntry.thumbPath) + props.lastThumbnailImageChange
+ ? urlGetDelim(fsEntry.thumbPath) +
+ props.lastThumbnailImageChange
: '')
}
// @ts-ignore
diff --git a/app/services/thumbsgenerator.ts b/app/services/thumbsgenerator.ts
index b6daa645d..31af371a8 100644
--- a/app/services/thumbsgenerator.ts
+++ b/app/services/thumbsgenerator.ts
@@ -149,7 +149,12 @@ export function getThumbnailURLPromise(
// Thumbnail exists
if (origStats.lmdt > stats.lmdt) {
// Checking if is up to date
- createThumbnailPromise(filePath, origStats.size, thumbFilePath, origStats.isFile)
+ createThumbnailPromise(
+ filePath,
+ origStats.size,
+ thumbFilePath,
+ origStats.isFile
+ )
.then(tmbPath => resolve({ filePath, tmbPath }))
.catch(err => {
console.warn('Thumb generation failed ' + err);
@@ -161,7 +166,12 @@ export function getThumbnailURLPromise(
}
} else {
// Thumbnail does not exists
- createThumbnailPromise(filePath, origStats.size, thumbFilePath, origStats.isFile)
+ createThumbnailPromise(
+ filePath,
+ origStats.size,
+ thumbFilePath,
+ origStats.isFile
+ )
.then(tmbPath => resolve({ filePath, tmbPath }))
.catch(err => {
console.warn('Thumb generation failed ' + err);