fix(frontend): use $appSettings.tagRuleApplyToExisting on creating a new tag rule also

This commit is contained in:
2026-04-07 11:59:09 +03:00
parent 135c71ae4d
commit eb2eb00d96
2 changed files with 3 additions and 3 deletions
@@ -47,7 +47,7 @@
const rule = await api.post<TagRule>(`/tags/${tagId}/rules`, {
then_tag_id: thenTagId,
is_active: true,
apply_to_existing: false,
apply_to_existing: $appSettings.tagRuleApplyToExisting,
});
onRulesChange([...rules, rule]);
search = '';
+2 -2
View File
@@ -262,8 +262,8 @@
<div class="toggle-row">
<div>
<span class="toggle-label">Apply activated tag rules to existing files</span>
<p class="hint-text">When a tag rule is activated, automatically add the implied tag to all files that already have the source tag.</p>
<span class="toggle-label">Apply new tag rules to existing files</span>
<p class="hint-text">When a tag rule is created or activated, automatically add the implied tag to all files that already have the source tag.</p>
</div>
<button
class="toggle"