Skip to content

Commit

Permalink
fix PR review remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
fbaligand committed Aug 19, 2017
1 parent 9726d04 commit 9c87c9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core_plugins/kibana/common/field_formats/types/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ UrlFormat.prototype._convert = {
linkLabel = label;
}

let linkTarget = this.param('openLinkInCurrentTab') ? '_self' : '_blank';
const linkTarget = this.param('openLinkInCurrentTab') ? '_self' : '_blank';

return `<a href="${url}" target="${linkTarget}">${linkLabel}</a>`;
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/ui/public/field_format_editor/editors/url/url.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

<div class="checkbox" ng-if="editor.formatParams.type == 'a'">
<label>
<input ng-model="editor.formatParams.openLinkInCurrentTab" class="ng-pristine ng-valid ng-touched" type="checkbox">
Open link in current tab
<input
type="checkbox"
ng-model="editor.formatParams.openLinkInCurrentTab">
Open link in current tab
</input>
</label>
</div>

Expand Down

0 comments on commit 9c87c9b

Please sign in to comment.