diff --git a/src/app/trusted-summary/component/summary-panel/summary-panel.component.html b/src/app/trusted-summary/component/summary-panel/summary-panel.component.html
index ba54e4e047..822061afa0 100644
--- a/src/app/trusted-summary/component/summary-panel/summary-panel.component.html
+++ b/src/app/trusted-summary/component/summary-panel/summary-panel.component.html
@@ -1,7 +1,12 @@
-
+
{{ activity.organizationName }}
+ >{{ activity.organizationName }}
+
{
let component: SummaryPanelComponent
@@ -9,7 +10,7 @@ describe('SummaryPanelComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SummaryPanelComponent],
- providers: [],
+ providers: [WINDOW_PROVIDERS],
}).compileComponents()
fixture = TestBed.createComponent(SummaryPanelComponent)
diff --git a/src/app/trusted-summary/component/summary-panel/summary-panel.component.ts b/src/app/trusted-summary/component/summary-panel/summary-panel.component.ts
index a69ab534fd..e031e36e0b 100644
--- a/src/app/trusted-summary/component/summary-panel/summary-panel.component.ts
+++ b/src/app/trusted-summary/component/summary-panel/summary-panel.component.ts
@@ -1,5 +1,6 @@
-import { Component, Input, OnInit } from '@angular/core'
+import { Component, Inject, Input, OnInit } from '@angular/core'
import { Subject } from 'rxjs'
+import { WINDOW } from 'src/app/cdk/window'
import { ActivitySummary } from 'src/app/types/trust-summary'
@Component({
@@ -20,10 +21,13 @@ export class SummaryPanelComponent implements OnInit {
@Input() moreLabel: string = ''
@Input() moreLabelSingular: string = ''
@Input() showToPresent = true
+ @Input() hoverEffect = false
activitiesToDisplay: ActivitySummary[]
acitivityCountOverflow: boolean
unsubscribe = new Subject()
+ constructor(@Inject(WINDOW) private _window: Window) {}
+
ngOnDestroy(): void {
this.unsubscribe.next()
this.unsubscribe.complete()
@@ -37,4 +41,10 @@ export class SummaryPanelComponent implements OnInit {
this.acitivityCountOverflow = this.count > 3
}
}
+ goToUrl(url?: string) {
+ if (!url) {
+ return
+ }
+ this._window.open(url, '_blank')
+ }
}
diff --git a/src/app/trusted-summary/component/summary-simple-panel/summary-simple-panel.component.html b/src/app/trusted-summary/component/summary-simple-panel/summary-simple-panel.component.html
index 23531718ab..9421d62904 100644
--- a/src/app/trusted-summary/component/summary-simple-panel/summary-simple-panel.component.html
+++ b/src/app/trusted-summary/component/summary-simple-panel/summary-simple-panel.component.html
@@ -1,4 +1,8 @@
-