|
18 | 18 | // ---------- END RUNBOX LICENSE ----------
|
19 | 19 |
|
20 | 20 | import { Component, Inject } from '@angular/core';
|
21 |
| -import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog'; |
| 21 | +import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
22 | 22 |
|
23 | 23 | import { RunboxWebmailAPI } from '../rmmapi/rbwebmail';
|
24 | 24 |
|
25 | 25 | @Component({
|
26 | 26 | selector: 'app-paypal-payment-dialog-component',
|
27 | 27 | template: `
|
28 |
| -<div mat-dialog-content style="width: 500px; height: 300px;"> |
29 |
| - <h1 mat-dialog-title>PayPal payment</h1> |
30 |
| - <div *ngIf="!redirect_url"> |
31 |
| - <div> We're preparing your Paypal payment, please wait...</div> |
32 |
| - <mat-spinner style="margin:0 auto;"></mat-spinner> |
33 |
| - </div> |
34 |
| - <div *ngIf="redirect_url"> |
35 |
| - Your PayPal payment link is ready. Please click the button below to be transferred to PayPal and complete your payment. |
36 |
| - </div> |
37 |
| - <br /><br /> |
38 |
| - <div style="text-align: center"> |
39 |
| - <a *ngIf="redirect_url" mat-flat-button color="primary" [href]="redirect_url" style="background: none"> |
| 28 | +<h1 mat-dialog-title>PayPal payment</h1> |
| 29 | + <div mat-dialog-content> |
| 30 | + <div *ngIf="!redirect_url"> |
| 31 | + <div> We're preparing your Paypal payment, please wait...</div> |
| 32 | + <mat-spinner style="margin:0 auto;"></mat-spinner> |
| 33 | + </div> |
| 34 | + <div *ngIf="redirect_url"> |
| 35 | + Your PayPal payment link is ready. Please click the button below to be transferred to PayPal and complete your payment. |
| 36 | + </div> |
| 37 | + <br /><br /> |
| 38 | + <div style="text-align: center"> |
| 39 | + <a *ngIf="redirect_url" mat-flat-button color="primary" [href]="redirect_url" style="background: none"> |
40 | 40 | <img src="/_img/pay/paypal_bundle_s.png" alt="PayPal">
|
41 |
| - </a> |
| 41 | + </a> |
| 42 | + </div> |
42 | 43 | </div>
|
43 | 44 | <div mat-dialog-actions style="justify-content: space-between;">
|
44 | 45 | <button mat-button (click)="close()"> Cancel </button>
|
45 | 46 | <a *ngIf="redirect_url" mat-flat-button color="primary" [href]="redirect_url"> Continue to PayPal </a>
|
46 | 47 | </div>
|
47 |
| -</div> |
48 | 48 | `
|
49 | 49 | })
|
50 | 50 | export class PaypalPaymentDialogComponent {
|
|
0 commit comments