mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
rename frontend to web
This commit is contained in:
11
web/projects/shared/src/pipes/guid/guid.pipe.ts
Normal file
11
web/projects/shared/src/pipes/guid/guid.pipe.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core'
|
||||
import { DiskInfo } from '../../types/api'
|
||||
|
||||
@Pipe({
|
||||
name: 'guid',
|
||||
})
|
||||
export class GuidPipe implements PipeTransform {
|
||||
transform(disk: DiskInfo): string | null {
|
||||
return disk.guid || disk.partitions.find(p => p.guid)?.guid || null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user