make Importer component reusable

This commit is contained in:
taehoon 2019-03-30 05:10:57 -04:00
parent 18bb209ace
commit 6d0e98a1c2
5 changed files with 50 additions and 17 deletions

View file

@ -171,7 +171,7 @@
<div class="setting-item">
<h2>{{$t('settings.follow_import')}}</h2>
<p>{{$t('settings.import_followers_from_a_csv_file')}}</p>
<Importer />
<Importer :submitHandler="importFollows" :successMessage="$t('settings.follows_imported')" :errorMessage="$t('settings.follow_import_error')" />
</div>
<div class="setting-item" v-if="enableFollowsExport">
<h2>{{$t('settings.follow_export')}}</h2>