aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/confirm/confirm.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-28 15:33:45 +0100
committerChocobozzz <me@florianbigard.com>2018-02-28 15:33:45 +0100
commit22b59e8099947605085cf65a440f07f37fce6b65 (patch)
tree0ce6c7d64a28468f9bb0ae4b4282bbf2421e5d83 /client/src/app/core/confirm/confirm.component.ts
parentd7137ad5fb31d6d740406ce7aa22529a4d36c760 (diff)
downloadPeerTube-22b59e8099947605085cf65a440f07f37fce6b65.tar.gz
PeerTube-22b59e8099947605085cf65a440f07f37fce6b65.tar.zst
PeerTube-22b59e8099947605085cf65a440f07f37fce6b65.zip
Add messages about privacy concerns (P2P)
Diffstat (limited to 'client/src/app/core/confirm/confirm.component.ts')
-rw-r--r--client/src/app/core/confirm/confirm.component.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/core/confirm/confirm.component.ts b/client/src/app/core/confirm/confirm.component.ts
index 8f81b7a98..147bc9d65 100644
--- a/client/src/app/core/confirm/confirm.component.ts
+++ b/client/src/app/core/confirm/confirm.component.ts
@@ -18,6 +18,7 @@ export class ConfirmComponent implements OnInit {
18 inputLabel = '' 18 inputLabel = ''
19 19
20 inputValue = '' 20 inputValue = ''
21 confirmButtonText = ''
21 22
22 constructor (private confirmService: ConfirmService) { 23 constructor (private confirmService: ConfirmService) {
23 // Empty 24 // Empty
@@ -30,13 +31,15 @@ export class ConfirmComponent implements OnInit {
30 } 31 }
31 32
32 this.confirmService.showConfirm.subscribe( 33 this.confirmService.showConfirm.subscribe(
33 ({ title, message, expectedInputValue, inputLabel }) => { 34 ({ title, message, expectedInputValue, inputLabel, confirmButtonText }) => {
34 this.title = title 35 this.title = title
35 this.message = message 36 this.message = message
36 37
37 this.inputLabel = inputLabel 38 this.inputLabel = inputLabel
38 this.expectedInputValue = expectedInputValue 39 this.expectedInputValue = expectedInputValue
39 40
41 this.confirmButtonText = confirmButtonText || 'Confirm'
42
40 this.showModal() 43 this.showModal()
41 } 44 }
42 ) 45 )