mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 13:19:28 +02:00
Capitalize filter
This commit is contained in:
parent
dac47da584
commit
2cd90ff4bd
2 changed files with 14 additions and 1 deletions
|
@ -28,4 +28,10 @@ export function ago (date) {
|
|||
|
||||
Vue.filter('ago', ago)
|
||||
|
||||
export function capitalize (str) {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1)
|
||||
}
|
||||
|
||||
Vue.filter('capitalize', capitalize)
|
||||
|
||||
export default {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue