Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ever-merchant): init payment mutation popup
- Loading branch information
1 parent
e4de4bc
commit a9e6383
Showing
9 changed files
with
126 additions
and
15 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
20 changes: 20 additions & 0 deletions
20
...et-ionic/src/components/settings-page-components/settings/payments/mutation/mutation.html
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="payments-mutation-popup"> | ||
<h4 class="custom-title-popup"> | ||
{{ titleText }} | ||
</h4> | ||
<button class="close" (click)="cancelModal()"> | ||
<i class="fa fa-close"></i> | ||
</button> | ||
|
||
<div class="body"></div> | ||
|
||
<div class="button-bar padding-top"> | ||
<button class="button button-assertive" (click)="cancelModal()"> | ||
Cancel | ||
</button> | ||
|
||
<button class="button button-brand"> | ||
{{ configureObject ? 'Update' : 'Add' }} | ||
</button> | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
...et-ionic/src/components/settings-page-components/settings/payments/mutation/mutation.scss
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.payments-mutation-popup { | ||
background-color: #fff; | ||
display: flex !important; | ||
flex-direction: column; | ||
position: relative; | ||
height: 100%; | ||
|
||
.body { | ||
height: 80%; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...blet-ionic/src/components/settings-page-components/settings/payments/mutation/mutation.ts
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Component } from '@angular/core'; | ||
import { ModalController } from '@ionic/angular'; | ||
import PaymentGateways, { | ||
paymentGatewaysToString | ||
} from '@modules/server.common/enums/PaymentGateways'; | ||
|
||
@Component({ | ||
selector: 'merchant-payments-mutation', | ||
templateUrl: 'mutation.html', | ||
styleUrls: ['mutation.scss'] | ||
}) | ||
export class PaymentMutationComponent { | ||
configureObject: any; | ||
paymentGateway: PaymentGateways; | ||
|
||
constructor(public modalController: ModalController) {} | ||
|
||
cancelModal() { | ||
this.modalController.dismiss(); | ||
} | ||
|
||
get titleText() { | ||
return `${ | ||
this.configureObject ? 'Update' : 'Add' | ||
} ${paymentGatewaysToString(this.paymentGateway)} gateway`; | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
merchant/tablet-ionic/src/components/settings-page-components/settings/settings.module.ts
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { SettingsComponent } from './settings'; | ||
import { SettingsPaymentsComponent } from './payments/payments'; | ||
import { CommonModule } from '@angular/common'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
import { IonicModule } from '@ionic/angular'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { NgSelectModule } from '@ng-select/ng-select'; | ||
import { PaymentMutationComponent } from './payments/mutation/mutation'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
SettingsComponent, | ||
SettingsPaymentsComponent, | ||
PaymentMutationComponent | ||
], | ||
entryComponents: [PaymentMutationComponent], | ||
imports: [ | ||
CommonModule, | ||
TranslateModule.forChild(), | ||
IonicModule, | ||
FormsModule, | ||
NgSelectModule | ||
], | ||
exports: [SettingsComponent] | ||
}) | ||
export class MerchantSettingsComponentModule {} |
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