|
|
@ -1,7 +1,6 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
ApplyFieldOverrideOptions, |
|
|
|
ApplyFieldOverrideOptions, |
|
|
|
DataFrame, |
|
|
|
DataFrame, |
|
|
|
DataLink, |
|
|
|
|
|
|
|
DisplayProcessor, |
|
|
|
DisplayProcessor, |
|
|
|
DisplayValue, |
|
|
|
DisplayValue, |
|
|
|
DynamicConfigValue, |
|
|
|
DynamicConfigValue, |
|
|
@ -353,7 +352,7 @@ export const getLinksSupplier = |
|
|
|
const timeRangeUrl = locationUtil.getTimeRangeUrlParams(); |
|
|
|
const timeRangeUrl = locationUtil.getTimeRangeUrlParams(); |
|
|
|
const { timeField } = getTimeField(frame); |
|
|
|
const { timeField } = getTimeField(frame); |
|
|
|
|
|
|
|
|
|
|
|
return field.config.links.map((link: DataLink) => { |
|
|
|
return field.config.links.map((link) => { |
|
|
|
const variablesQuery = locationUtil.getVariablesUrlParams(); |
|
|
|
const variablesQuery = locationUtil.getVariablesUrlParams(); |
|
|
|
let dataFrameVars = {}; |
|
|
|
let dataFrameVars = {}; |
|
|
|
let valueVars = {}; |
|
|
|
let valueVars = {}; |
|
|
@ -439,7 +438,7 @@ export const getLinksSupplier = |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let href = locationUtil.assureBaseUrl(link.url.replace(/\n/g, '')); |
|
|
|
let href = locationUtil.assureBaseUrl(link.url.replace(/\n/g, '')); |
|
|
|
href = replaceVariables(href, variables); |
|
|
|
href = replaceVariables(href, variables, encodeURIComponent); |
|
|
|
href = locationUtil.processUrl(href); |
|
|
|
href = locationUtil.processUrl(href); |
|
|
|
|
|
|
|
|
|
|
|
const info: LinkModel<Field> = { |
|
|
|
const info: LinkModel<Field> = { |
|
|
|