Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Release: 1.23.2 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
data4life-web authored Jan 7, 2021
1 parent 6fd9910 commit f0e142d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "infection-risk-assessment-app",
"private": true,
"version": "1.23.0",
"version": "1.23.2",
"description": "Assessing the risk of contagious viral infections (COVID-19)",
"scripts": {
"analyze": "stencil build",
Expand Down
11 changes: 11 additions & 0 deletions src/components/app-recommendations/app-recommendations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { trackEvent, TRACKING_EVENTS } from '../../global/utils/track';
assetsDirs: ['assets'],
})
export class AppRecommendationsComponent {
protected containerElement: HTMLElement;

@Prop() history: RouterHistory;
@State() language: string;
@Listen('changedLanguage', {
Expand All @@ -22,6 +24,14 @@ export class AppRecommendationsComponent {

@Prop() isFromData4Life: boolean = false;

componentDidRender() {
this.containerElement
.querySelectorAll('a')
.forEach(
el => el.href?.includes(DATA4LIFE_URL) && el.setAttribute('rel', 'noopener')
);
}

render() {
const slides = [
{
Expand Down Expand Up @@ -85,6 +95,7 @@ export class AppRecommendationsComponent {
elementId={APP_RECOMMENDATIONS_ID}
headline={i18next.t('app_recommendation_headline')}
open={this.history.location?.state?.openAppRecommendationsAccordion}
ref={el => (this.containerElement = el)}
>
<d4l-slider slides={slides} slot="accordion-children" />
</ia-accordion>
Expand Down
2 changes: 1 addition & 1 deletion src/components/logo-d4l-powered-by/logo-d4l-powered-by.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class LogoD4LPoweredBy {
<a
href="https://www.data4life.care/"
target="_blank"
rel="noopener noreferrer"
rel="noopener"
aria-label="data4life"
>
<svg
Expand Down

0 comments on commit f0e142d

Please sign in to comment.