diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-04-15 15:35:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 15:35:41 +0200 |
commit | 437e8e06eb32ffe21111f0946115aae0e4c33381 (patch) | |
tree | c221f0c41b4d29de00f4a3318393c32a83b02fe5 /client/src/types/register-client-option.model.ts | |
parent | 45c14ae1b2884e75c6341117489ea39ae0e1a3bc (diff) | |
download | PeerTube-437e8e06eb32ffe21111f0946115aae0e4c33381.tar.gz PeerTube-437e8e06eb32ffe21111f0946115aae0e4c33381.tar.zst PeerTube-437e8e06eb32ffe21111f0946115aae0e4c33381.zip |
Add custom modal to plugin helpers (#2631)
* Add custom modal component
* Add custom modal to app and plugins helpers
* Fixes custom modal component
* Add doc for custom modal
* Fix newline end of file html and scss files
* Move my-custom-modal component outside component for UserLoggedIn modals
* Move initializeCustomModal to ngAfterViewInit()
* Wrap events and conditionnals
* Replace ng-show with ngIf*
* Add modalRef to open only one modal + onCloseClick
* Refacto + Fix access methods of custom modal
* Fix methods names custom-modal.component
* Fix implement AfterViewInit & no default boolean
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/types/register-client-option.model.ts')
-rw-r--r-- | client/src/types/register-client-option.model.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index b64652a0f..1c235107a 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts | |||
@@ -19,5 +19,13 @@ export type RegisterClientHelpers = { | |||
19 | success: (text: string, title?: string, timeout?: number) => void | 19 | success: (text: string, title?: string, timeout?: number) => void |
20 | } | 20 | } |
21 | 21 | ||
22 | showModal: (input: { | ||
23 | title: string, | ||
24 | content: string, | ||
25 | close?: boolean, | ||
26 | cancel?: { value: string, action?: () => void }, | ||
27 | confirm?: { value: string, action?: () => void } | ||
28 | }) => void | ||
29 | |||
22 | translate: (toTranslate: string) => Promise<string> | 30 | translate: (toTranslate: string) => Promise<string> |
23 | } | 31 | } |