From eb2eb00d96d18cf42168f3964cb36e2dddbc1f90 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Tue, 7 Apr 2026 11:59:09 +0300 Subject: [PATCH] fix(frontend): use $appSettings.tagRuleApplyToExisting on creating a new tag rule also --- frontend/src/lib/components/tag/TagRuleEditor.svelte | 2 +- frontend/src/routes/settings/+page.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/tag/TagRuleEditor.svelte b/frontend/src/lib/components/tag/TagRuleEditor.svelte index 68aeee1..3d4633d 100644 --- a/frontend/src/lib/components/tag/TagRuleEditor.svelte +++ b/frontend/src/lib/components/tag/TagRuleEditor.svelte @@ -47,7 +47,7 @@ const rule = await api.post(`/tags/${tagId}/rules`, { then_tag_id: thenTagId, is_active: true, - apply_to_existing: false, + apply_to_existing: $appSettings.tagRuleApplyToExisting, }); onRulesChange([...rules, rule]); search = ''; diff --git a/frontend/src/routes/settings/+page.svelte b/frontend/src/routes/settings/+page.svelte index 28fb2b7..9bedbe0 100644 --- a/frontend/src/routes/settings/+page.svelte +++ b/frontend/src/routes/settings/+page.svelte @@ -262,8 +262,8 @@
- Apply activated tag rules to existing files -

When a tag rule is activated, automatically add the implied tag to all files that already have the source tag.

+ Apply new tag rules to existing files +

When a tag rule is created or activated, automatically add the implied tag to all files that already have the source tag.