mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
closes #1706
This commit is contained in:
committed by
Aiden McClelland
parent
34000fb9f0
commit
43090c9873
@@ -4,7 +4,8 @@ import { Pipe, PipeTransform } from '@angular/core'
|
||||
name: 'mask',
|
||||
})
|
||||
export class MaskPipe implements PipeTransform {
|
||||
transform(val: string): string {
|
||||
return val && '●'.repeat(val.length)
|
||||
transform(val: string, max?: number): string {
|
||||
const length = max ? Math.min(max, val.length) : val.length
|
||||
return '●'.repeat(length)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user