This commit is contained in:
Mohit Panjwani
2019-12-12 20:31:57 +05:30
3 changed files with 12 additions and 0 deletions

View File

@ -14,6 +14,7 @@
<base-select
v-model="formData.currency"
:options="currencies"
:custom-label="currencyNameWithCode"
:class="{'error': $v.formData.currency.$error }"
:searchable="true"
:show-labels="false"
@ -179,6 +180,9 @@ export default {
this.getDiscountSettings()
},
methods: {
currencyNameWithCode ({name, code}) {
return `${code} - ${name}`
},
...mapActions('currency', [
'setDefaultCurrency'
]),