mirror of
https://github.com/gotson/komga.git
synced 2026-01-09 17:34:32 +01:00
refactor: use lodash for capitalize
This commit is contained in:
parent
241b441c56
commit
3176cd2858
2 changed files with 1 additions and 5 deletions
|
|
@ -120,7 +120,6 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { capitalize } from '@/functions/text'
|
||||
import Vue from 'vue'
|
||||
import { SeriesStatus } from '@/types/enum-series'
|
||||
|
||||
|
|
@ -165,7 +164,7 @@ export default Vue.extend({
|
|||
},
|
||||
seriesStatus (): any[] {
|
||||
return Object.keys(SeriesStatus).map(x => ({
|
||||
text: capitalize(x),
|
||||
text: this.$_.capitalize(x),
|
||||
value: x
|
||||
}))
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
export function capitalize (s: string) {
|
||||
return `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`
|
||||
}
|
||||
Loading…
Reference in a new issue