Skip to content

Commit 2d074bb

Browse files
committed
add app id config
1 parent 1627471 commit 2d074bb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

projects/fusio-sdk/src/lib/component/login/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class LoginComponent implements OnInit {
3333
}
3434

3535
async ngOnInit(): Promise<void> {
36-
this.identity = await this.consumer.getClientAnonymous().identity().getAll();
36+
this.identity = await this.consumer.getClientAnonymous().identity().getAll(this.config.getAppId());
3737
this.logo = this.config.getLogo();
3838
this.title = this.logo === undefined;
3939
}

projects/fusio-sdk/src/lib/config/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {Message} from "fusio-sdk/dist/src/generated/consumer/Message";
66
export interface Config {
77
baseUrl: string,
88
logo?: string,
9+
appId?: number,
910
homePath?: string,
1011
loginPath?: string,
1112
paymentProvider?: string,

projects/fusio-sdk/src/lib/service/config.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export class ConfigService {
2020
return this.config.logo;
2121
}
2222

23+
public getAppId(): number|undefined {
24+
return this.config.appId;
25+
}
26+
2327
public getHomePath(): string {
2428
if (this.config.homePath) {
2529
return this.config.homePath;

0 commit comments

Comments
 (0)