chore: use long variable name
This commit is contained in:
parent
4dee3a90e9
commit
6f1baa3219
@ -1,14 +1,14 @@
|
||||
import {i18n} from '@/i18n'
|
||||
import type {IProject} from '@/modelTypes/IProject'
|
||||
|
||||
export function getProjectTitle(p: IProject) {
|
||||
if (p.id === -1) {
|
||||
export function getProjectTitle(project: IProject) {
|
||||
if (project.id === -1) {
|
||||
return i18n.global.t('project.pseudo.favorites.title')
|
||||
}
|
||||
|
||||
if (p.title === 'Inbox') {
|
||||
if (project.title === 'Inbox') {
|
||||
return i18n.global.t('project.inboxTitle')
|
||||
}
|
||||
|
||||
return p.title
|
||||
return project.title
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user