mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
* [ML] Fixing detector help link in advanced wizard * tiny refactor
This commit is contained in:
parent
421b47b413
commit
04b2be98fa
1 changed files with 13 additions and 8 deletions
|
@ -29,15 +29,20 @@ module.directive('mlDocumentationHelpLink', function () {
|
|||
// metadata.branch corresponds to the version used in documentation links.
|
||||
const version = metadata.branch;
|
||||
|
||||
const props = {
|
||||
fullUrl: `${baseUrl}/guide/en/x-pack/${version}/${scope.uri}`,
|
||||
label: scope.label
|
||||
};
|
||||
function renderReactComponent() {
|
||||
|
||||
ReactDOM.render(
|
||||
React.createElement(DocumentationHelpLink, props),
|
||||
element[0]
|
||||
);
|
||||
const props = {
|
||||
fullUrl: `${baseUrl}/guide/en/x-pack/${version}/${scope.uri}`,
|
||||
label: scope.label
|
||||
};
|
||||
|
||||
ReactDOM.render(
|
||||
React.createElement(DocumentationHelpLink, props),
|
||||
element[0]
|
||||
);
|
||||
}
|
||||
|
||||
scope.$watch('uri', renderReactComponent);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue