-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auth): only show auth form if define in config
- Loading branch information
Showing
10 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<div *ngIf="!auth.logged && backgroundDisable" class="backgroundDisable"></div> | ||
<div *ngIf="visible"> | ||
<div *ngIf="!auth.logged && backgroundDisable" class="backgroundDisable"></div> | ||
|
||
<div *ngIf="!auth.logged" class="login center-block"> | ||
<h1>{{'igo.auth.connection' | translate}}</h1> | ||
<div *ngIf="!auth.logged" class="login center-block"> | ||
<h1>{{'igo.auth.connection' | translate}}</h1> | ||
|
||
<igo-auth-google | ||
*ngIf="options.google && options.google.enabled !== false" | ||
(onLogin)="login()"> | ||
</igo-auth-google> | ||
<igo-auth-facebook | ||
*ngIf="options.facebook && options.facebook.enabled !== false" | ||
(onLogin)="login()"> | ||
</igo-auth-facebook> | ||
<igo-auth-intern | ||
*ngIf="!options.intern || options.intern.enabled !== false" | ||
(onLogin)="login()"> | ||
</igo-auth-intern> | ||
</div> | ||
<igo-auth-google | ||
*ngIf="options.google && options.google.enabled !== false" | ||
(onLogin)="login()"> | ||
</igo-auth-google> | ||
<igo-auth-facebook | ||
*ngIf="options.facebook && options.facebook.enabled !== false" | ||
(onLogin)="login()"> | ||
</igo-auth-facebook> | ||
<igo-auth-intern | ||
*ngIf="!options.intern || options.intern.enabled !== false" | ||
(onLogin)="login()"> | ||
</igo-auth-intern> | ||
</div> | ||
|
||
<div *ngIf="auth.logged && alreadyConnectedDiv" class="login center-block"> | ||
<p>{{'igo.auth.welcome' | translate: user}}</p> | ||
<button type="button" (click)="logout()">{{'igo.auth.signOut' | translate}}</button> | ||
<div *ngIf="auth.logged && alreadyConnectedDiv" class="login center-block"> | ||
<p>{{'igo.auth.welcome' | translate: user}}</p> | ||
<button type="button" (click)="logout()">{{'igo.auth.signOut' | translate}}</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters