mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
16 lines
294 B
TypeScript
16 lines
294 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
@Pipe({
|
|
name: 'capitalize'
|
|
})
|
|
export class CapitalizePipe implements PipeTransform {
|
|
|
|
transform(value: any, args?: any): any {
|
|
if (value) {
|
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|