fix importer/exporter i18n
This commit is contained in:
parent
8d46fd78c7
commit
e47d5ba53b
4 changed files with 10 additions and 35 deletions
|
@ -15,18 +15,8 @@ const Exporter = {
|
|||
type: String,
|
||||
default: 'export.csv'
|
||||
},
|
||||
exportButtonLabel: {
|
||||
type: String,
|
||||
default () {
|
||||
return this.$t('exporter.export')
|
||||
}
|
||||
},
|
||||
processingMessage: {
|
||||
type: String,
|
||||
default () {
|
||||
return this.$t('exporter.processing')
|
||||
}
|
||||
}
|
||||
exportButtonLabel: { type: String },
|
||||
processingMessage: { type: String }
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
spin
|
||||
/>
|
||||
|
||||
<span>{{ processingMessage }}</span>
|
||||
<span>{{ processingMessage || $t('exporter.processing') }}</span>
|
||||
</div>
|
||||
<button
|
||||
v-else
|
||||
class="btn button-default"
|
||||
@click="process"
|
||||
>
|
||||
{{ exportButtonLabel }}
|
||||
{{ exportButtonLabel || $t('exporter.export') }}
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue