Skip to content
Snippets Groups Projects
Unverified Commit 8d333b9a authored by Kyle Doherty's avatar Kyle Doherty
Browse files

add xray related settings to public properties

parent c4a27485
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,14 @@ export const getTableItem = (state, index = 1) => createSelector(
export const getComparisonForField = createSelector
// see if xrays are enabled. unfortunately enabled equals null so its enabled if its not false
export const getXrayEnabled = state => state.settings.values['enable-xrays'] !== false
export const getMaxCost = state => state.settings.values['xray-max-cost']
export const getXrayEnabled = state => {
console.log('state!!!', state)
const enabled = state.settings.values['enable_xrays']
if(enabled == null || enabled == true) {
return true
}
return false
}
export const getMaxCost = state => state.settings.values['xray_max_cost']
......@@ -137,6 +137,7 @@
:embedding (enable-embedding)
:enable_query_caching (enable-query-caching)
:enable_nested_queries (enable-nested-queries)
:enable_xrays (setting/get :enable-xrays)
:engines ((resolve 'metabase.driver/available-drivers))
:ga_code "UA-60817802-1"
:google_auth_client_id (setting/get :google-auth-client-id)
......@@ -152,4 +153,5 @@
:timezone_short (short-timezone-name (setting/get :report-timezone))
:timezones common/timezones
:types (types/types->parents)
:version config/mb-version-info})
:version config/mb-version-info
:xray_max_cost (setting/get :xray-max-cost)})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment