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 79edd87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,12 @@ export class ArlasConfigurationUpdaterService {
contributorsToRemove.add(contributor.identifier);
}
});
<<<<<<< HEAD
/** remove shortcuts contributors */
data.arlas.web.contributors.filter(contributor => contributor.linkedContributorId).forEach(contributor => {
if (contributorsToRemove.has(contributor.linkedContributorId)) {
contributorsToRemove.add(contributor.identifier);
}
});
=======

/** remove metrics table contributors */

>>>>>>> f25072e (Integrate MetricsTable component)
}
return contributorsToRemove;
}
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

Check failure on line 56 in projects/arlas-toolkit/src/lib/shared.module.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test & Documentation

Module '"arlas-web-components"' has no exported member 'MetricsTableComponent'.

Check failure on line 56 in projects/arlas-toolkit/src/lib/shared.module.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test & Documentation

Module '"arlas-web-components"' has no exported member 'MetricsTableModule'.
} 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 79edd87

Please sign in to comment.