FEATURE: Import and export watched word (#12444)

Find & Replace and Autotag watched words were not completely exported
and import did not work with these either. This commit changes the
input and output format to CSV, which allows for a secondary column.

This change is backwards compatible because a CSV file with only one
column has one value per line.
This commit is contained in:
Bianca Nenciu
2021-03-22 22:32:18 +02:00
committed by GitHub
parent fb4486d5f1
commit 437c9a554b
6 changed files with 67 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<label class="btn btn-default {{if addDisabled "disabled"}}">
{{d-icon "upload"}}
{{i18n "admin.watched_words.form.upload"}}
<input class="hidden-upload-field" disabled={{addDisabled}} type="file" accept="text/plain">
<input class="hidden-upload-field" disabled={{addDisabled}} type="file">
</label>