Fix client registration performance

pull/6064/head
Chocobozzz 2023-11-27 09:15:42 +01:00
parent 2703129a1a
commit f3907ceeaf
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 2 deletions

View File

@ -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