From 4004b3ea6a44e36f15c844bb2839a419833dc973 Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 5 Dec 2019 16:40:18 -0300 Subject: [PATCH] fix: orders of computed words --- src/components/js/EcApplication.js | 57 +++++++++++++++--------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/src/components/js/EcApplication.js b/src/components/js/EcApplication.js index f043050..d50b632 100644 --- a/src/components/js/EcApplication.js +++ b/src/components/js/EcApplication.js @@ -100,6 +100,34 @@ export default { return this.applicationBody.description }, + version () { + return this.applicationBody.version + }, + + noRelatedApps () { + if (this.appsRelated) { + if (!this.quantityOfRelatedApps) { + return this.i19noAppsAvailable + } + } + }, + + website () { + return this.applicationBody.website + }, + + price () { + if (this.applicationBody) { + if (!this.applicationBody.paid) { + return i18n(i19free) + } else { + return i18n(i19paid) + } + } else { + return i18n(i19unavailable) + } + }, + i19description () { return i18n(i19description) }, @@ -128,35 +156,6 @@ export default { return 'Não há aplicativos disponíveis' }, - version () { - return this.applicationBody.version - }, - - noRelatedApps () { - if (this.appsRelated) { - if (!this.quantityOfRelatedApps) { - return this.i19noAppsAvailable - } - } - }, - - website () { - return this.applicationBody.website - }, - - price () { - if (this.applicationBody) { - if (!this.applicationBody.paid) { - return i18n(i19free) - } else { - return i18n(i19paid) - } - - } else { - return i18n(i19unavailable) - } - }, - i19author () { return i18n(i19author) },