split out follow’s importer as a separate component
This commit is contained in:
parent
9e2fa50b74
commit
562120ae48
4 changed files with 59 additions and 41 deletions
19
src/components/importer/importer.vue
Normal file
19
src/components/importer/importer.vue
Normal file
|
@ -0,0 +1,19 @@
|
|||
<template>
|
||||
<div class="importer">
|
||||
<form>
|
||||
<input type="file" ref="input" v-on:change="change" />
|
||||
</form>
|
||||
<i class="icon-spin4 animate-spin uploading" v-if="uploading"></i>
|
||||
<button class="btn btn-default" v-else @click="submit">{{$t('general.submit')}}</button>
|
||||
<div v-if="success">
|
||||
<i class="icon-cross" @click="dismiss"></i>
|
||||
<p>{{$t('settings.follows_imported')}}</p>
|
||||
</div>
|
||||
<div v-else-if="error">
|
||||
<i class="icon-cross" @click="dismiss"></i>
|
||||
<p>{{$t('settings.follow_import_error')}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./importer.js"></script>
|
Loading…
Add table
Add a link
Reference in a new issue