2019-03-29 18:58:20 -07:00
|
|
|
<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>
|
2019-03-29 20:55:49 -07:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.importer {
|
|
|
|
.uploading {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|