Chorehancement: update to Angular v22, 'zoneless' / 'reactive' (#13114)

This commit is contained in:
shamoon authored and GitHub committed 2026-07-10 00:42:16 -07:00
1 parent f244442c65
commit 106b41a15c
213 files changed
+5363 -5842

No files matched your search

@@ -1,6 +1,13 @@
import { Clipboard } from '@angular/cdk/clipboard'
import { DecimalPipe } from '@angular/common'
import { Component, EventEmitter, Input, Output, inject } from '@angular/core'
import {
Component,
EventEmitter,
Input,
Output,
inject,
signal,
} from '@angular/core'
import {
NgbProgressbarModule,
NgbToastModule,
@@ -22,6 +29,7 @@ import { Toast } from 'src/app/services/toast.service'
})
export class ToastComponent {
private clipboard = inject(Clipboard)
readonly copied = signal(false)
@Input() toast: Toast
@@ -31,8 +39,6 @@ export class ToastComponent {
@Output() closed: EventEmitter<Toast> = new EventEmitter<Toast>()
public copied: boolean = false
onShown(toast: Toast) {
if (!this.autohide) return
@@ -62,9 +68,9 @@ export class ToastComponent {
public copyError(error: any) {
this.clipboard.copy(JSON.stringify(error))
this.copied = true
this.copied.set(true)
setTimeout(() => {
this.copied = false
this.copied.set(false)
}, 3000)
}