diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-07 10:33:16 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-07 10:33:16 +0100 |
commit | 59aa1e5e7541f604363d2a1ebfd670a5d1db245f (patch) | |
tree | 6903fede247f90d63a7dc676f31efc52c244799d /client/src/app/core | |
parent | 0727cab0dfd3d53e5e9c88bfbda6bc0e090d4f12 (diff) | |
download | PeerTube-59aa1e5e7541f604363d2a1ebfd670a5d1db245f.tar.gz PeerTube-59aa1e5e7541f604363d2a1ebfd670a5d1db245f.tar.zst PeerTube-59aa1e5e7541f604363d2a1ebfd670a5d1db245f.zip |
Design confirm dialog
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/confirm/confirm.component.html | 6 | ||||
-rw-r--r-- | client/src/app/core/confirm/confirm.component.ts | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/client/src/app/core/confirm/confirm.component.html b/client/src/app/core/confirm/confirm.component.html index 2726af6cc..31b735f97 100644 --- a/client/src/app/core/confirm/confirm.component.html +++ b/client/src/app/core/confirm/confirm.component.html | |||
@@ -6,14 +6,14 @@ | |||
6 | <button type="button" class="close" aria-label="Close" (click)="cancel()"> | 6 | <button type="button" class="close" aria-label="Close" (click)="cancel()"> |
7 | <span aria-hidden="true">×</span> | 7 | <span aria-hidden="true">×</span> |
8 | </button> | 8 | </button> |
9 | <h4 class="modal-title">{{ title }}</h4> | 9 | <h4 class="title-page title-page-single">{{ title }}</h4> |
10 | </div> | 10 | </div> |
11 | 11 | ||
12 | <div class="modal-body" [innerHtml]="message"></div> | 12 | <div class="modal-body" [innerHtml]="message"></div> |
13 | 13 | ||
14 | <div class="modal-footer"> | 14 | <div class="modal-footer"> |
15 | <button type="button" class="btn btn-default" data-dismiss="modal" (click)="cancel()">Cancel</button> | 15 | <button type="button" class="grey-button" data-dismiss="modal" (click)="cancel()">Cancel</button> |
16 | <button type="button" class="btn btn-primary" (click)="confirm()">Confirm</button> | 16 | <button type="button" class="orange-button" (click)="confirm()">Confirm</button> |
17 | </div> | 17 | </div> |
18 | </div> | 18 | </div> |
19 | </div> | 19 | </div> |
diff --git a/client/src/app/core/confirm/confirm.component.ts b/client/src/app/core/confirm/confirm.component.ts index c8e41e233..0515d969a 100644 --- a/client/src/app/core/confirm/confirm.component.ts +++ b/client/src/app/core/confirm/confirm.component.ts | |||
@@ -11,7 +11,8 @@ export interface ConfigChangedEvent { | |||
11 | 11 | ||
12 | @Component({ | 12 | @Component({ |
13 | selector: 'my-confirm', | 13 | selector: 'my-confirm', |
14 | templateUrl: './confirm.component.html' | 14 | templateUrl: './confirm.component.html', |
15 | styles: [ '.button { padding: 0 13px; }' ] | ||
15 | }) | 16 | }) |
16 | export class ConfirmComponent implements OnInit { | 17 | export class ConfirmComponent implements OnInit { |
17 | @ViewChild('confirmModal') confirmModal: ModalDirective | 18 | @ViewChild('confirmModal') confirmModal: ModalDirective |