fix(frontend): use $appSettings.tagRuleApplyToExisting on creating a new tag rule also
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user