mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-22 04:34:14 +00:00
Complete dashboard translations & small UI improvements (#69)
* fix dropdown action Estimate Dashboard and fix translating full Dasboard page * Update app.php * fix locale in app.php config * Wizard install with translation, customer portal with translation, and fixing hardcoding strings to get translation * fixes asked to review * fixes pint --------- Co-authored-by: Max <contact@agencetwogether.fr> Co-authored-by: Darko Gjorgjijoski <5760249+gdarko@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
/>
|
||||
|
||||
<BaseWizard
|
||||
:steps="7"
|
||||
:steps="8"
|
||||
:current-step="currentStepNumber"
|
||||
@click="onNavClick"
|
||||
>
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import Step0SetLanguage from './Step0SetLanguage.vue'
|
||||
import Step1RequirementsCheck from './Step1RequirementsCheck.vue'
|
||||
import Step2PermissionCheck from './Step2PermissionCheck.vue'
|
||||
import Step3DatabaseConfig from './Step3DatabaseConfig.vue'
|
||||
@@ -34,6 +35,7 @@ import { useRouter } from 'vue-router'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
step_0: Step0SetLanguage,
|
||||
step_1: Step1RequirementsCheck,
|
||||
step_2: Step2PermissionCheck,
|
||||
step_3: Step3DatabaseConfig,
|
||||
@@ -45,11 +47,12 @@ export default {
|
||||
},
|
||||
|
||||
setup() {
|
||||
let stepComponent = ref('step_1')
|
||||
let stepComponent = ref('step_0')
|
||||
let currentStepNumber = ref(1)
|
||||
|
||||
const router = useRouter()
|
||||
const installationStore = useInstallationStore()
|
||||
const { global } = window.i18n
|
||||
|
||||
checkCurrentProgress()
|
||||
|
||||
@@ -61,6 +64,10 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if(typeof res.data.profile_language === 'string') {
|
||||
global.locale.value = res.data.profile_language
|
||||
}
|
||||
|
||||
let dbstep = parseInt(res.data.profile_complete)
|
||||
|
||||
if (dbstep) {
|
||||
@@ -93,7 +100,7 @@ export default {
|
||||
|
||||
currentStepNumber.value++
|
||||
|
||||
if (currentStepNumber.value <= 8) {
|
||||
if (currentStepNumber.value <= 9) {
|
||||
stepComponent.value = 'step_' + currentStepNumber.value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user