Code refactoring

This commit is contained in:
Burak Civan
2021-05-28 14:16:40 +03:00
parent c08c080900
commit aaa7f79670
6 changed files with 36 additions and 29 deletions

View File

@ -26,7 +26,9 @@
/>
<p class="mb-0 mt--3">
<small>
<div v-html="translations.company.get_api_key"></div>
<div><a href="https://akaunting.com/dashboard" target="_blank">Click here</a>
to get your API key.
</div>
</small>
</p>
</div>
@ -123,6 +125,10 @@ export default {
translations: {
type: [Object, Array],
},
url: {
type: String,
default: 'text'
}
},
data() {
return {
@ -133,9 +139,7 @@ export default {
},
mounted() {
let company_data = this.company;
setTimeout(() => {
this.dataWatch(company_data);
}, 500);
},
watch: {
company: function (company) {
@ -159,6 +163,7 @@ export default {
this.real_date = company.financial_start;
}
},
next() {
if (this.active++ > 2);
this.$router.push("/wizard/currencies");