Skip to content

Commit

Permalink
Feat:fix display public if connected
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbet committed Nov 6, 2024
1 parent c4df87f commit a8caaca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions src/app/components/dynamic-hub/dynamic-hub.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class DynamicHubComponent implements OnInit {
this.canCreateDashboardByOrg.set(o, resources.filter(r => r.verb === 'POST').length > 0);
this.allowedOrganisations = this.getAllowedOrganisations();
return this.cardService.cardList(fetchOptions)
.pipe(map(cards => this.filterCardsByOrganisation(cards, o, fetchOptions)))
.pipe(map(cards => this.filterCardsByOrganisation(cards, o)))
.pipe(tap(cards => this.enrichCards(cards, fetchOptions)));
})
)
Expand Down Expand Up @@ -267,9 +267,8 @@ export class DynamicHubComponent implements OnInit {
});
}

private filterCardsByOrganisation(cards: Card[], o?: string, fetchOptions?) {
this.storeExternalOrganisationsCards(cards.filter(card => card.organisation !== o)
);
private filterCardsByOrganisation(cards: Card[], o?: string) {
this.storeExternalOrganisationsCards(cards.filter(card => card.organisation !== o));
return cards.filter(card => card.organisation === o);
}

Expand All @@ -289,6 +288,8 @@ export class DynamicHubComponent implements OnInit {
if (!publicCards) {
publicCards = [];
}
this.registerCollection(c);
c.preview$ = this.getPreview$(c.previewId,{});
this.addCard(c, publicCards);
this.cardsRef.set(publicOrg, publicCards);
}
Expand Down
10 changes: 5 additions & 5 deletions src/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
############ AUTHENTICATION SETTINGS ###############
########################################################
authentication:
use_authent: false
force_connect: true
use_authent: true
force_connect: false
use_discovery: true
auth_mode: 'iam'
url: 'http://localhost/arlas_iam_server'
url: 'https://localhost/arlas_iam_server'
threshold: 60000
scope: openid
issuer: http://mgoun/auth/realms/arlas
Expand All @@ -28,9 +28,9 @@ authentication:
sign_up_enabled: true

persistence:
url: 'http://localhost:81/persist'
url: 'https://localhost/persist'
permission:
url: 'http://localhost:81/permissions'
url: 'https://localhost/arlas_permissions_server'
arlas_wui_url: "http://localhost:4200"
arlas_builder_url: "http://localhost:4200"
links: []
Expand Down

0 comments on commit a8caaca

Please sign in to comment.