Fix way to routing, using only one array ! ...continue

This commit is contained in:
Paolo Arena
2019-07-18 13:22:23 +02:00
parent a80bbe3236
commit 116703d6cc
13 changed files with 593 additions and 70 deletions

View File

@@ -11,6 +11,7 @@ import { tools } from '../../store/Modules/tools'
import { toolsext } from '@src/store/Modules/toolsext'
import Quasar, { Screen } from 'quasar'
import { static_data } from '../../db/static_data'
@Component({
name: 'Header',
@@ -37,12 +38,10 @@ export default class Header extends Vue {
public photo = ''
public visuimg: boolean = true
public selectOpLang = [
{ label: 'English', icon: 'fa-flag-us', value: 'enUs', image: '../statics/images/gb.png', short: 'EN' },
{ label: 'Español', icon: 'fa-flag-es', value: 'es', image: '../statics/images/es.png', short: 'ES' },
{ label: 'Italiano', icon: 'fa-facebook', value: 'it', image: '../statics/images/it.png', short: 'IT' }
// { label: 'German', icon: 'fa-flag-de', value: 'de', image: '../statics/images/de.png', short: 'DE' },
]
public selectOpLang() {
return static_data.lang_available
}
get getappname(){
if (Screen.width < 400) {
@@ -165,14 +164,17 @@ export default class Header extends Vue {
const color = (value === 'online') ? 'positive' : 'warning'
if (!!oldValue) {
tools.showNotif(this.$q, this.$t('connection') + ` ${value}`, {
color,
icon: 'wifi'
})
}
if (this.static_data.SHOW_IF_IS_SERVER_CONNECTION) {
this.changeIconConn()
if (!!oldValue) {
tools.showNotif(this.$q, this.$t('connection') + ` ${value}`, {
color,
icon: 'wifi'
})
}
this.changeIconConn()
}
}
}
@@ -337,4 +339,8 @@ export default class Header extends Vue {
tools.showNotif(this.$q, this.$t('logout.uscito'), {icon: 'exit_to_app'})
})
}
get static_data(){
return static_data
}
}

View File

@@ -58,7 +58,7 @@
-->
<q-btn
v-if="!isonline"
v-if="!isonline && static_data.SHOW_IF_IS_SERVER_CONNECTION"
flat
dense
round
@@ -72,6 +72,7 @@
<q-btn-dropdown
stretch
v-if="selectOpLang.length > 1"
flat
:label="langshort"
auto-close