Unify management lists with single template

This commit is contained in:
Michael Shamoon
2022-03-22 22:01:46 -07:00
parent 6790532d8f
commit 8565a2c3ed
27 changed files with 156 additions and 210 deletions

View File

@@ -0,0 +1,17 @@
import { Pipe, PipeTransform } from '@angular/core'
import { DomSanitizer } from '@angular/platform-browser'
@Pipe({
name: 'safeurl',
})
export class SafeUrlPipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {}
transform(url) {
if (url == null) {
return this.sanitizer.bypassSecurityTrustResourceUrl('')
} else {
return this.sanitizer.bypassSecurityTrustResourceUrl(url)
}
}
}