From 4acbb891df9f94f6dcc55bf90c55ef54b69359c1 Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 6 Dec 2025 19:06:55 -0700 Subject: [PATCH] Using theme for bulk tag applying text. --- app/src/components/BulkTagModal.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/src/components/BulkTagModal.js b/app/src/components/BulkTagModal.js index 663cc0f9..97cce04e 100644 --- a/app/src/components/BulkTagModal.js +++ b/app/src/components/BulkTagModal.js @@ -3,6 +3,7 @@ import {Button, Divider, Header, Loader, Modal, ModalActions, ModalContent, Moda import Message from "semantic-ui-react/dist/commonjs/collections/Message"; import {applyBulkTags, getBulkTagPreview, getBulkTagProgress} from "../api"; import {TagsContext} from "../Tags"; +import {ThemeContext} from "../contexts/contexts"; const BULK_TAG_WARNING_THRESHOLD = 50; const POLL_INTERVAL = 500; // Poll progress every 500ms @@ -17,6 +18,7 @@ export function BulkTagModal({open, onClose, paths, onComplete}) { const [error, setError] = React.useState(null); const {tagNames, TagsGroup} = React.useContext(TagsContext); + const {t} = React.useContext(ThemeContext); // Fetch preview when modal opens React.useEffect(() => { @@ -140,7 +142,7 @@ export function BulkTagModal({open, onClose, paths, onComplete}) { {error && ( Error -

{error}

+

{error}

)} @@ -151,7 +153,7 @@ export function BulkTagModal({open, onClose, paths, onComplete}) { {showWarning && ( Warning -

Tagging over {BULK_TAG_WARNING_THRESHOLD} files may make it difficult to find what you are looking for. Are you sure?

+

Tagging over {BULK_TAG_WARNING_THRESHOLD} files may make it difficult to find what you are looking for. Are you sure?

)} @@ -161,7 +163,7 @@ export function BulkTagModal({open, onClose, paths, onComplete}) { {localTags.length > 0 ? ( ) : ( -

Add one or more tags below

+

Add one or more tags below

)} @@ -169,7 +171,7 @@ export function BulkTagModal({open, onClose, paths, onComplete}) { {unusedTags.length > 0 ? ( ) : ( -

You have no tags

+

You have no tags

)} )} @@ -186,7 +188,7 @@ export function BulkTagModal({open, onClose, paths, onComplete}) { {progress.completed} / {progress.total} files {progress.queued_jobs > 0 && ( -

{progress.queued_jobs} job{progress.queued_jobs !== 1 ? 's' : ''} queued

+

{progress.queued_jobs} job{progress.queued_jobs !== 1 ? 's' : ''} queued

)} {error && ( @@ -201,12 +203,12 @@ export function BulkTagModal({open, onClose, paths, onComplete}) {
Complete -

Successfully tagged {progress.total} file{progress.total !== 1 ? 's' : ''}.

+

Successfully tagged {progress.total} file{progress.total !== 1 ? 's' : ''}.

{error && ( Warning -

Some errors occurred: {error}

+

Some errors occurred: {error}

)}