2019-03-30 23:03:40 +11:00
|
|
|
<template>
|
|
|
|
<div class="exporter">
|
|
|
|
<div v-if="processing">
|
2019-07-05 17:17:44 +10:00
|
|
|
<i class="icon-spin4 animate-spin exporter-processing" />
|
|
|
|
<span>{{ processingMessage }}</span>
|
2019-03-30 23:03:40 +11:00
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
v-else
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="process"
|
|
|
|
>
|
|
|
|
{{ exportButtonLabel }}
|
|
|
|
</button>
|
2019-03-30 23:03:40 +11:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./exporter.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.exporter {
|
|
|
|
&-processing {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|