mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
0.2.5 initial commit
Makefile incomplete
This commit is contained in:
11
ui/src/app/pipes/icon.pipe.ts
Normal file
11
ui/src/app/pipes/icon.pipe.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core'
|
||||
|
||||
@Pipe({
|
||||
name: 'iconParse',
|
||||
})
|
||||
export class IconPipe implements PipeTransform {
|
||||
transform (iconUrl: string): string {
|
||||
if (iconUrl.startsWith('/')) return '/api' + iconUrl
|
||||
return iconUrl
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user