Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -554,32 +554,6 @@ <h4 class="my-0 text-secondary mat-body-1 fw-bold">Add New Blocks</h4>
</div>
</div>
<div *ngIf="isEditMode">
<div
*ngIf="
featureForm.get('serviceDetails')?.at(3).controls.is_enable.value &&
featureForm.get('authorizationDetails.version')?.value === 'v2'
"
class="d-flex align-items-center justify-content-center w-100 mb-3"
>
<div class="custom-toggle-group">
<button
type="button"
class="custom-toggle-btn"
[class.active]="previewInputPosition !== 'bottom'"
(click)="previewInputPosition = 'top'"
>
Input on Top
</button>
<button
type="button"
class="custom-toggle-btn"
[class.active]="previewInputPosition === 'bottom'"
(click)="previewInputPosition = 'bottom'"
>
Input on Bottom
</button>
</div>
</div>
<ng-container *ngTemplateOutlet="previewAuthorization"></ng-container>
</div>
</div>
Expand Down Expand Up @@ -924,6 +898,32 @@ <h2 class="mat-h2 fw-bolder text-light-gray mb-0">Sign in to your account</h2>
</div>
</div>
<div *ngIf="isEditMode">
<div
*ngIf="
featureForm.get('serviceDetails')?.at(3).controls.is_enable.value &&
featureForm.get('authorizationDetails.version')?.value === 'v2'
"
class="d-flex align-items-center justify-content-center w-100 mb-3"
>
<div class="custom-toggle-group">
<button
type="button"
class="custom-toggle-btn"
[class.active]="previewInputPosition !== 'bottom'"
(click)="previewInputPosition = 'top'"
>
Input on Top
</button>
<button
type="button"
class="custom-toggle-btn"
[class.active]="previewInputPosition === 'bottom'"
(click)="previewInputPosition = 'bottom'"
>
Input on Bottom
</button>
</div>
</div>
<ng-container *ngTemplateOutlet="previewAuthorization"></ng-container>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,9 +1019,6 @@ export class CreateFeatureComponent extends BaseComponent implements OnDestroy,
this.getValueFromObservable(this.featureDetails$)?.reference_id,
type: featureId === 1 ? 'authorization' : 'subscription',
isPreview: true,
version: this.featureForm.get('authorizationDetails.version')?.value || 'v1',
input_fields: this.previewInputPosition,
show_social_login_icons: this.featureForm.get('authorizationDetails.showSocialLoginIcons')?.value || false,
target: '_blank',
success: (data) => {
// get verified token in response
Expand Down
6 changes: 0 additions & 6 deletions libs/models/features-model/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,11 @@ export const ProxyAuthScript = (
baseUrl: string,
referenceId = '<reference_id>',
type = '<type>',
version?: string,
input_fields?: string,
show_social_login_icons?: string,
time?: number
) => `<script type="text/javascript">
var configuration = {
referenceId: '${referenceId}',
type: '${type}',
version: '${version}',
input_fields: '${input_fields}',
show_social_login_icons: '${show_social_login_icons}',
success: (data) => {
// get verified token in response
console.log('success response', data);
Expand Down
Loading