Files
exchange-2.0/resources/assets/vue/components/settings/elements/PrimaryCurrencyComponent.vue
T
omair saleh 05401f6bbc large commit
2021-03-11 13:06:40 +08:00

31 lines
813 B
Vue

<template>
<currency-component section="PrimaryCurrenciesSection" primary :data="this.currency"></currency-component>
</template>
<script>
import CurrencyComponent from "./CurrencyComponent";
export default {
components: {CurrencyComponent},
data(){
return {
currency: {
country: {
name: '',
short_code: ''
},
short_code: ''
},
}
},
created(){
this.submit(this.route('api.currency.primary.show'), 'get', 'PrimaryCurrenciesSection', false, false)
},
methods: {
successHandler(response){
this.currency = response.payload.data;
}
}
}
</script>