File tree 2 files changed +3
-1
lines changed
src/components/users/signup-social/ko
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
< signup-social-runtime data-bind ="attr: { params: runtimeConfig } "> </ signup-social-runtime >
3
3
<!-- /ko -->
4
4
5
- <!-- ko ifnot: identityProvider && (mode === "publishing") -->
5
+ <!-- ko if: showNoAadConfigMessage -->
6
6
< div class ="not-configured "> This widget will display a sign-up form when you configure < a
7
7
href ="https://aka.ms/apim-how-to-aad " target ="_blank "> Azure Active Directory</ a > or< a
8
8
href ="https://aka.ms/apim-how-to-aadb2c " target ="_blank "> Azure Active Directory B2C</ a > integration in your API
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ export class SignupSocialViewModel {
10
10
public readonly identityProvider : ko . Observable < boolean > ;
11
11
public readonly mode : ko . Observable < string > ;
12
12
public readonly runtimeConfig : ko . Observable < string > ;
13
+ public readonly showNoAadConfigMessage : ko . Computed < boolean > ;
13
14
14
15
constructor ( ) {
15
16
this . identityProvider = ko . observable < boolean > ( ) ;
16
17
this . mode = ko . observable < string > ( ) ;
17
18
this . runtimeConfig = ko . observable < string > ( ) ;
19
+ this . showNoAadConfigMessage = ko . computed < boolean > ( ( ) => ! this . identityProvider ( ) && this . mode ( ) !== "publishing" ) ;
18
20
}
19
21
}
You can’t perform that action at this time.
0 commit comments