diff --git a/addon/components/au-link-external.gts b/addon/components/au-link-external.gts index 94cc4780a..1585ade1e 100644 --- a/addon/components/au-link-external.gts +++ b/addon/components/au-link-external.gts @@ -14,6 +14,7 @@ export interface AuLinkExternalSignature { hideText?: boolean; icon?: AuIconSignature['Args']['icon']; iconAlignment?: 'left' | 'right'; + newTab?: boolean; skin?: | 'primary' | 'secondary' @@ -61,12 +62,16 @@ export default class AuLinkExternal extends Component { return ''; } + get newTab() { + return typeof this.args.newTab === 'boolean' ? this.args.newTab : true; + } + // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982 // prettier-ignore