fixes for duo

This commit is contained in:
Kyle Spearrin 2018-06-11 12:58:56 -04:00
parent ba6451856a
commit d16f599db9
3 changed files with 16 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container"> <form #form (ngSubmit)="submit()" [appApiAction]="formPromise" class="container">
<div class="row justify-content-md-center mt-5"> <div class="row justify-content-md-center mt-5">
<div class="col-5"> <div class="col-5" [ngClass]="{'col-9': selectedProviderType === providerType.Duo || selectedProviderType === providerType.OrganizationDuo}">
<p class="lead text-center mb-4">{{title}}</p> <p class="lead text-center mb-4">{{title}}</p>
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
@ -38,7 +38,7 @@
</ng-container> </ng-container>
<ng-container *ngIf="selectedProviderType === providerType.Duo || <ng-container *ngIf="selectedProviderType === providerType.Duo ||
selectedProviderType === providerType.OrganizationDuo"> selectedProviderType === providerType.OrganizationDuo">
<div id="duo-frame"> <div id="duo-frame" class="mb-3">
<iframe id="duo_iframe"></iframe> <iframe id="duo_iframe"></iframe>
</div> </div>
</ng-container> </ng-container>

View File

@ -289,3 +289,14 @@ app-login {
display: block; display: block;
} }
} }
#duo-frame {
background: url('../images/loading.svg') 0 0 no-repeat;
height: 330px;
iframe {
width: 100%;
height: 100%;
border: none;
}
}

View File

@ -38,15 +38,14 @@ const moduleRules = [
}, },
{ {
test: /\.(jpe?g|png|gif|svg)$/i, test: /\.(jpe?g|png|gif|svg)$/i,
exclude: /.*(fontawesome-webfont|glyphicons-halflings-regular)\.svg/, exclude: /.*(fontawesome-webfont)\.svg/,
use: [{ use: [{
loader: 'file-loader', loader: 'file-loader',
options: { options: {
name: '[name].[ext]', name: '[name].[ext]',
outputPath: 'images/', outputPath: 'images/',
publicPath: './images/', }
}, }]
}],
}, },
{ {
test: /\.scss$/, test: /\.scss$/,