]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - client/src/app/app.component.ts
Add custom modal to plugin helpers (#2631)
authorKim <1877318+kimsible@users.noreply.github.com>
Wed, 15 Apr 2020 13:35:41 +0000 (15:35 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2020 13:35:41 +0000 (15:35 +0200)
commit437e8e06eb32ffe21111f0946115aae0e4c33381
treec221f0c41b4d29de00f4a3318393c32a83b02fe5
parent45c14ae1b2884e75c6341117489ea39ae0e1a3bc
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>
client/src/app/app.component.html
client/src/app/app.component.ts
client/src/app/app.module.ts
client/src/app/core/plugins/plugin.service.ts
client/src/app/modal/custom-modal.component.html [new file with mode: 0644]
client/src/app/modal/custom-modal.component.scss [new file with mode: 0644]
client/src/app/modal/custom-modal.component.ts [new file with mode: 0644]
client/src/types/register-client-option.model.ts
support/doc/plugins/guide.md