showing OLFUK or OLFDE near API api calls
This commit is contained in:
		@@ -1,12 +1,15 @@
 | 
				
			|||||||
import axios from 'axios'
 | 
					import axios from 'axios'
 | 
				
			||||||
 | 
					import store from '../store/modules/settings.js'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const ProductEndpointUrl = 'https://metadata.service.development.therig.onlinefuelslabs.io'
 | 
					const ProductEndpointUrl = 'https://metadata.service.development.therig.onlinefuelslabs.io'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function fetchList(query) {
 | 
					export function fetchList(query) {
 | 
				
			||||||
 | 
					  console.log(store.state.platform)
 | 
				
			||||||
  return axios.get(`${ProductEndpointUrl}/fuels`, { params: query })
 | 
					  return axios.get(`${ProductEndpointUrl}/fuels`, { params: query })
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function fetchProduct(id) {
 | 
					export function fetchProduct(id) {
 | 
				
			||||||
 | 
					  console.log(`${ProductEndpointUrl}/fuels/${id}?platform=${store.state.platform}`)
 | 
				
			||||||
  return axios.get(`${ProductEndpointUrl}/fuels/${id}?platform=OLFDE`)
 | 
					  return axios.get(`${ProductEndpointUrl}/fuels/${id}?platform=OLFDE`)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@ module.exports = {
 | 
				
			|||||||
   * @type {string} true | false
 | 
					   * @type {string} true | false
 | 
				
			||||||
   * @description Decide which countrys platform to show to the user
 | 
					   * @description Decide which countrys platform to show to the user
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  platform: 'DE',
 | 
					  platform: 'OLFDE',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * @type {string | array} 'production' | ['production', 'development']
 | 
					   * @type {string | array} 'production' | ['production', 'development']
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,10 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="dashboard-editor-container">
 | 
					  <div class="dashboard-editor-container">
 | 
				
			||||||
    <github-corner class="github-corner" />
 | 
					    <github-corner class="github-corner" />
 | 
				
			||||||
    <el-radio v-model="platform" label="DE" @change="someHandler">
 | 
					    <el-radio v-model="platform" label="OLFDE" @change="someHandler">
 | 
				
			||||||
      DE
 | 
					      DE
 | 
				
			||||||
    </el-radio>
 | 
					    </el-radio>
 | 
				
			||||||
    <el-radio v-model="platform" label="UK" @change="someHandler">
 | 
					    <el-radio v-model="platform" label="OLFUK" @change="someHandler">
 | 
				
			||||||
      UK
 | 
					      UK
 | 
				
			||||||
    </el-radio>
 | 
					    </el-radio>
 | 
				
			||||||
    <h1>{{ platform }}</h1>
 | 
					    <h1>{{ platform }}</h1>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user