Skip to content

Commit

Permalink
♻️ refactor the access of config values
Browse files Browse the repository at this point in the history
Signed-off-by: JAGFx <contact@jagfx.fr>
  • Loading branch information
JAGFx committed Jul 30, 2021
1 parent 1612628 commit db79a00
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 199 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Expand Up @@ -28,4 +28,4 @@ jobs:
run: npm i

- name: Run linter
run: npm run lint
run: npm run lint:no-fix
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -10,6 +10,7 @@
},
"scripts": {
"lint": "vue-cli-service lint src",
"lint:no-fix": "vue-cli-service lint --no-fix src",
"build": "set NODE_ENV=production && npx gulp build",
"bundle": "set NODE_ENV=production && npx gulp bundle",
"bAndB": "npx gulp bAndB",
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Expand Up @@ -66,7 +66,7 @@ export default {
.then( () => {
this.$pushALog( 'Config loaded', history.HTY_ZONE.MAIN );
const skinToLoad = this.getConfig( 'general_skin_on_load' );
const skinToLoad = this.config( 'general_skin_on_load' );
try {
this.$store.commit( 'skins/setConfigActive', skinToLoad );
Expand Down
1 change: 0 additions & 1 deletion src/components/dashboards/jagfx/JagfxConfigMixins.vue
Expand Up @@ -43,7 +43,6 @@ export default {
},
methods: {
$elementIsEnabled: function ( side, element, options ) {
//const config = this.allConfig;
const sideElements = this.elements[ side ];
const indexElement = sideElements.indexOf( element );
const isOnSide = indexElement !== -1;
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboards/jagfx/Zone/JagfxTruck.vue
Expand Up @@ -38,7 +38,7 @@
</div>-->

<Map
v-if="allConfig['jagfx_elements_right_map'] === 'true'"
v-if="config('jagfx_elements_right_map') === 'true'"
:show-speed="false"
:show-speed-limit="false"
:show-navigation-eta="false"
Expand Down

0 comments on commit db79a00

Please sign in to comment.