-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from ever-co/develop
Develop
- Loading branch information
Showing
17 changed files
with
225 additions
and
12 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
37 changes: 37 additions & 0 deletions
37
admin/website-angular/src/app/@shared/user/ban-confirm/ban-confirm.component.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,37 @@ | ||
<div class="modal-header"> | ||
<h4 class="modal-title" id="modal-title">Profile Ban</h4> | ||
<button | ||
type="button" | ||
class="close" | ||
aria-label="Close button" | ||
aria-describedby="modal-title" | ||
(click)="modal.dismiss()" | ||
> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p> | ||
<strong | ||
>Are you sure you want to {{ user.isBanned ? 'unban' : 'ban' }} | ||
<span class="text-primary">"{{ user.name }}"</span>?</strong | ||
> | ||
</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="btn btn-outline-secondary" | ||
(click)="modal.dismiss()" | ||
> | ||
Cancel | ||
</button> | ||
<button | ||
type="button" | ||
ngbAutofocus | ||
class="btn btn-danger" | ||
(click)="modal.close(user.id)" | ||
> | ||
Ok | ||
</button> | ||
</div> |
Empty file.
15 changes: 15 additions & 0 deletions
15
admin/website-angular/src/app/@shared/user/ban-confirm/ban-confirm.component.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,15 @@ | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { CustomerViewModel } from 'app/pages/+customers/customers.component'; | ||
|
||
@Component({ | ||
selector: 'ea-ban-confirm', | ||
templateUrl: './ban-confirm.component.html', | ||
styleUrls: ['./ban-confirm.component.scss'] | ||
}) | ||
export class BanConfirmComponent implements OnInit { | ||
@Input() user: CustomerViewModel; | ||
constructor(private readonly modal: NgbActiveModal) {} | ||
|
||
ngOnInit() {} | ||
} |
11 changes: 11 additions & 0 deletions
11
admin/website-angular/src/app/@shared/user/ban-confirm/ban-confirm.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,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { BanConfirmComponent } from './ban-confirm.component'; | ||
|
||
@NgModule({ | ||
declarations: [BanConfirmComponent], | ||
exports: [BanConfirmComponent], | ||
entryComponents: [BanConfirmComponent], | ||
imports: [CommonModule] | ||
}) | ||
export class BanConfirmModule {} |
2 changes: 2 additions & 0 deletions
2
admin/website-angular/src/app/@shared/user/ban-confirm/index.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,2 @@ | ||
export * from './ban-confirm.module'; | ||
export * from './ban-confirm.component'; |
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
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
Oops, something went wrong.