Skip to content
Snippets Groups Projects
Unverified Commit 1053480b authored by Rigel Kent's avatar Rigel Kent
Browse files

Slightly more personal support modal

parent c1125bca
No related branches found
No related tags found
No related merge requests found
<ng-template #modal let-hide="close"> <ng-template #modal let-hide="close">
<div class="modal-header"> <div class="modal-header">
<h4 i18n class="modal-title">Support</h4> <h4 i18n class="modal-title">Support {{ user?.account?.displayName }}</h4>
<my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
</div> </div>
<div class="modal-body" [innerHTML]="videoHTMLSupport"></div> <div class="modal-body" [innerHTML]="videoHTMLSupport"></div>
<div class="modal-footer inputs"> <div class="modal-footer inputs">
<span i18n class="action-button action-button-cancel" (click)="hide()">Cancel</span> <span i18n class="action-button action-button-cancel" (click)="hide()">Maybe later</span>
</div> </div>
</ng-template> </ng-template>
...@@ -2,6 +2,7 @@ import { Component, Input, ViewChild } from '@angular/core' ...@@ -2,6 +2,7 @@ import { Component, Input, ViewChild } from '@angular/core'
import { VideoDetails } from '../../../shared/video/video-details.model' import { VideoDetails } from '../../../shared/video/video-details.model'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { MarkdownService } from '@app/shared/renderer' import { MarkdownService } from '@app/shared/renderer'
import { User } from '@app/shared'
@Component({ @Component({
selector: 'my-video-support', selector: 'my-video-support',
...@@ -10,6 +11,7 @@ import { MarkdownService } from '@app/shared/renderer' ...@@ -10,6 +11,7 @@ import { MarkdownService } from '@app/shared/renderer'
}) })
export class VideoSupportComponent { export class VideoSupportComponent {
@Input() video: VideoDetails = null @Input() video: VideoDetails = null
@Input() user: User = null
@ViewChild('modal', { static: true }) modal: NgbModal @ViewChild('modal', { static: true }) modal: NgbModal
......
...@@ -260,6 +260,6 @@ ...@@ -260,6 +260,6 @@
</div> </div>
<ng-container *ngIf="video !== null"> <ng-container *ngIf="video !== null">
<my-video-support #videoSupportModal [video]="video"></my-video-support> <my-video-support #videoSupportModal [video]="video" [user]="user"></my-video-support>
<my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share> <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share>
</ng-container> </ng-container>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment