mirror of https://github.com/Chocobozzz/PeerTube
Fix client registration performance
parent
2703129a1a
commit
f3907ceeaf
|
@ -1,4 +1,4 @@
|
||||||
import { Component, Input } from '@angular/core'
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
||||||
import { DomSanitizer } from '@angular/platform-browser'
|
import { DomSanitizer } from '@angular/platform-browser'
|
||||||
|
|
||||||
const images = {
|
const images = {
|
||||||
|
@ -14,7 +14,8 @@ export type MascotImageName = keyof typeof images
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-signup-mascot',
|
selector: 'my-signup-mascot',
|
||||||
styleUrls: [ './signup-mascot.component.scss' ],
|
styleUrls: [ './signup-mascot.component.scss' ],
|
||||||
template: `<div class="root" [innerHTML]="html"></div>`
|
template: `<div class="root" [innerHTML]="html"></div>`,
|
||||||
|
changeDetection: ChangeDetectionStrategy.OnPush
|
||||||
})
|
})
|
||||||
export class SignupMascotComponent {
|
export class SignupMascotComponent {
|
||||||
@Input() imageName: MascotImageName
|
@Input() imageName: MascotImageName
|
||||||
|
|
Loading…
Reference in New Issue