Skip to content

Commit

Permalink
wire component with contributor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Hamou authored and Mohamed Hamou committed Jun 27, 2024
1 parent b663277 commit 4cc5787
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@
</div>

<div *ngIf="componentType === 'metricstable'">
<arlas-metrics-table [multiBarTable]="contributor.data"></arlas-metrics-table>
<arlas-metrics-table [metricsTable]="contributor?.data"></arlas-metrics-table>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class WidgetComponent implements OnInit {
public ngOnInit() {
this.contributorType = this.getContirbutorType();
this.contributor = this.arlasStartupService.contributorRegistry.get(this.contributorId);
console.log(this.contributor);
if (this.componentType === 'swimlane') {
this.swimlanes = this.contributor.getConfigValue('swimlanes');
if (this.swimlanes) {
Expand Down
3 changes: 2 additions & 1 deletion projects/arlas-toolkit/src/lib/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import {
CalendarTimelineModule,
ColorGeneratorLoader, ColorGeneratorModule, DonutModule, FormatNumberModule,
HistogramModule, MapglLegendModule, MetricModule, PowerbarsModule, ResultsModule
HistogramModule, MapglLegendModule, MetricModule, MetricsTableComponent, MetricsTableModule, PowerbarsModule, ResultsModule
} from 'arlas-web-components';
import en from 'arlas-web-components/assets/i18n/en.json';
import fr from 'arlas-web-components/assets/i18n/fr.json';
Expand Down Expand Up @@ -171,6 +171,7 @@ export class CustomTranslateLoader implements TranslateLoader {
MatProgressBarModule,
MatProgressSpinnerModule,
MatSelectModule,
MetricsTableModule,
MatSnackBarModule,
MatStepperModule,
MatTableModule,
Expand Down

0 comments on commit 4cc5787

Please sign in to comment.