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`, {
|
const rule = await api.post<TagRule>(`/tags/${tagId}/rules`, {
|
||||||
then_tag_id: thenTagId,
|
then_tag_id: thenTagId,
|
||||||
is_active: true,
|
is_active: true,
|
||||||
apply_to_existing: false,
|
apply_to_existing: $appSettings.tagRuleApplyToExisting,
|
||||||
});
|
});
|
||||||
onRulesChange([...rules, rule]);
|
onRulesChange([...rules, rule]);
|
||||||
search = '';
|
search = '';
|
||||||
|
|||||||
@@ -262,8 +262,8 @@
|
|||||||
|
|
||||||
<div class="toggle-row">
|
<div class="toggle-row">
|
||||||
<div>
|
<div>
|
||||||
<span class="toggle-label">Apply activated tag rules to existing files</span>
|
<span class="toggle-label">Apply new 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>
|
<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>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="toggle"
|
class="toggle"
|
||||||
|
|||||||
Reference in New Issue
Block a user