Skip to content
Snippets Groups Projects
Commit 4146fe1f authored by Daviti Gogshelidze's avatar Daviti Gogshelidze
Browse files

Set default connectivity profile

parent 7e795884
No related branches found
No related tags found
No related merge requests found
......@@ -115,10 +115,10 @@
<sxplr-sapiviews-features-connectivity-browser
class="pe-all flex-shrink-1"
[region]="region"
[types]="hasConnectivityDirective.availableModalities"
[sxplr-sapiviews-features-connectivity-browser-atlas]="atlas"
[sxplr-sapiviews-features-connectivity-browser-parcellation]="parcellation"
[accordionExpanded]="expandedPanel === CONST.CONNECTIVITY"
[types]="hasConnectivityDirective.availableModalities"
>
</sxplr-sapiviews-features-connectivity-browser>
</ng-template>
......
......@@ -57,8 +57,6 @@ export class ConnectivityBrowserComponent implements AfterViewInit, OnDestroy {
}
@Input() types: SapiModalityModel[] = []
public selectedType: string
public selectedTypeId: string
public selectedCohort: string
......@@ -66,6 +64,7 @@ export class ConnectivityBrowserComponent implements AfterViewInit, OnDestroy {
public selectedSubjectIndex: number
public selectedSubjectsDatasets: string[]
public selectedSubjectDatasetIndex: number
public infoExpanded: boolean
public fetchedItems: SapiParcellationFeatureModel[] = []
public cohorts: string[]
public selectedView: 'subject' | 'average' | null
......@@ -105,6 +104,16 @@ export class ConnectivityBrowserComponent implements AfterViewInit, OnDestroy {
public logDisabled: boolean = true
public logChecked: boolean = true
private _types: SapiModalityModel[] = []
@Input()
set types(val) {
this._types = val
if (val && val.length) this.selectType(val[0].name)
}
get types() {
return this._types
}
@ViewChild('connectivityComponent', {read: ElementRef}) public connectivityComponentElement: ElementRef<any>
@ViewChild('fullConnectivityGrid') public fullConnectivityGridElement: ElementRef<any>
......@@ -214,6 +223,7 @@ export class ConnectivityBrowserComponent implements AfterViewInit, OnDestroy {
this.cohorts = [...new Set(this.fetchedItems.map(item => item.cohort))]
this.fetching = false
this.changeDetectionRef.detectChanges()
this.selectCohort(this.cohorts[0])
}
})
}
......
......@@ -96,6 +96,15 @@
<i class="fas fa-download mb-2 mr-2"></i>
<label>Export</label>
</button>
<button mat-button (click)="infoExpanded = !infoExpanded">
<i class="fas fa-info mb-2 mr-2"></i>
<i class="fas mb-2 ml-2" [ngClass]="infoExpanded? 'fa-chevron-up' : 'fa-chevron-down'"></i>
</button>
</div>
<div *ngIf="infoExpanded">
<p>{{selectedDataset.description}}</p>
<p>{{selectedDataset.authors.join()}}</p>
</div>
<hbp-connectivity-matrix-row
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment