yandere_fe/src/components/importer/importer.vue

29 lines
694 B
Vue
Raw Normal View History

<template>
<div class="importer">
<form>
<input type="file" ref="input" v-on:change="change" />
</form>
2019-03-30 02:10:57 -07:00
<i class="icon-spin4 animate-spin importer-uploading" v-if="submitting"></i>
<button class="btn btn-default" v-else @click="submit">{{submitButtonLabel}}</button>
<div v-if="success">
<i class="icon-cross" @click="dismiss"></i>
2019-03-30 02:10:57 -07:00
<p>{{successMessage}}</p>
</div>
<div v-else-if="error">
<i class="icon-cross" @click="dismiss"></i>
2019-03-30 02:10:57 -07:00
<p>{{errorMessage}}</p>
</div>
</div>
</template>
<script src="./importer.js"></script>
2019-03-29 20:55:49 -07:00
<style lang="scss">
.importer {
2019-03-30 02:10:57 -07:00
&-uploading {
2019-03-29 20:55:49 -07:00
font-size: 1.5em;
margin: 0.25em;
}
}
</style>